mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
Fix build in PartitionCoreModule.
This commit is contained in:
parent
1dec58f178
commit
4712af05a0
1 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue