Asynchronous revert for Erase operation.

This commit is contained in:
Teo Mrnjavac 2015-12-31 14:40:40 +01:00
parent 5c0627a9d3
commit fbb92646d8

View File

@ -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() );