Better way to detect free space

main
Aurélien Gâteau 11 years ago
parent bd44729328
commit cdfb890e17

@ -27,7 +27,7 @@ namespace PMUtils
bool isPartitionFreeSpace( Partition* partition ) bool isPartitionFreeSpace( Partition* partition )
{ {
return partition->fileSystem().type() == FileSystem::Unknown; return partition->roles().has( PartitionRole::Unallocated );
} }
} // namespace } // namespace

Loading…
Cancel
Save