Asynchronous revert for Erase operation.
This commit is contained in:
parent
5c0627a9d3
commit
fbb92646d8
@ -420,7 +420,12 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||
case Erase:
|
||||
if ( m_core->isDirty() )
|
||||
{
|
||||
ScanningDialog::run( QtConcurrent::run( [ = ]
|
||||
{
|
||||
QMutexLocker locker( &m_coreMutex );
|
||||
m_core->revertDevice( selectedDevice() );
|
||||
} ),
|
||||
this );
|
||||
}
|
||||
|
||||
PartitionActions::doAutopartition( m_core, selectedDevice() );
|
||||
|
Loading…
Reference in New Issue
Block a user