diff --git a/src/modules/partition/PartitionCoreModule.cpp b/src/modules/partition/PartitionCoreModule.cpp index 48dfd4e44..9d6b8e734 100644 --- a/src/modules/partition/PartitionCoreModule.cpp +++ b/src/modules/partition/PartitionCoreModule.cpp @@ -123,7 +123,7 @@ PartitionCoreModule::DeviceInfo::~DeviceInfo() bool PartitionCoreModule::DeviceInfo::hasRootMountPoint() const { - for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it) + for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it ) { if ( PartitionInfo::mountPoint( *it ) == "/" ) return true; @@ -135,10 +135,8 @@ void PartitionCoreModule::DeviceInfo::forgetChanges() { jobs.clear(); - for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it) - { + for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it ) PartitionInfo::reset( *it ); - } } //- PartitionCoreModule ------------------------------------ diff --git a/src/modules/partition/PartitionPage.cpp b/src/modules/partition/PartitionPage.cpp index 8aa5cafcf..04459fe49 100644 --- a/src/modules/partition/PartitionPage.cpp +++ b/src/modules/partition/PartitionPage.cpp @@ -198,8 +198,6 @@ PartitionPage::editExistingPartition( Device* device, Partition* partition ) { QPointer dlg = new EditExistingPartitionDialog( device, partition, this ); if ( dlg->exec() == QDialog::Accepted ) - { dlg->applyChanges( m_core ); - } delete dlg; }