Better way to detect free space

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

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

Loading…
Cancel
Save