diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 61a5669aa..23673ea79 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -426,14 +426,15 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) { QMutexLocker locker( &m_coreMutex ); m_core->revertDevice( selectedDevice() ); - } ), - [=] + [ = ] { PartitionActions::doAutopartition( m_core, selectedDevice() ); }, this ); } + else + PartitionActions::doAutopartition( m_core, selectedDevice() ); break; case Replace: