diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 70bb29e9f..348a3e85a 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -420,7 +420,12 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) case Erase: if ( m_core->isDirty() ) { - m_core->revertDevice( selectedDevice() ); + ScanningDialog::run( QtConcurrent::run( [ = ] + { + QMutexLocker locker( &m_coreMutex ); + m_core->revertDevice( selectedDevice() ); + } ), + this ); } PartitionActions::doAutopartition( m_core, selectedDevice() );