Fix build in PartitionCoreModule.

This commit is contained in:
Teo Mrnjavac 2014-07-16 15:55:49 +02:00
parent 1dec58f178
commit 4712af05a0

View file

@ -183,9 +183,9 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
// I am not sure if we can iterate on Partition::children() while
// deleting them, so let's play it safe and keep our own list.
QList< Partition* > lst;
for ( auto partition : partition->children() )
if ( !PMUtils::isPartitionFreeSpace( partition ) )
lst << partition;
for ( auto childPartition : partition->children() )
if ( !PMUtils::isPartitionFreeSpace( childPartition ) )
lst << childPartition;
for ( auto partition : lst )
deletePartition( device, partition );