|
|
|
@ -442,10 +442,23 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|
|
|
|
watcher->deleteLater();
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
auto doReplace = [ this, current ]
|
|
|
|
|
{
|
|
|
|
|
QFuture< void > future = QtConcurrent::run( this, &ChoicePage::doReplaceSelectedPartition, current );
|
|
|
|
|
watcher->setFuture( future );
|
|
|
|
|
} );
|
|
|
|
|
break;
|
|
|
|
|
case NoChoice:
|
|
|
|
|
case Manual:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
updateActionChoicePreview( currentChoice() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ChoicePage::doReplaceSelectedPartition( const QModelIndex& current )
|
|
|
|
|
{
|
|
|
|
|
cDebug() << "begin doReplace";
|
|
|
|
|
QMutexLocker( &( ChoicePage::m_coreMutex ) );
|
|
|
|
|
QMutexLocker locker( &m_coreMutex );
|
|
|
|
|
|
|
|
|
|
if ( m_core->isDirty() )
|
|
|
|
|
{
|
|
|
|
@ -461,17 +474,6 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|
|
|
|
selectedDevice(),
|
|
|
|
|
partition );
|
|
|
|
|
cDebug() << "end doReplace";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
QFuture< void > future = QtConcurrent::run( doReplace );
|
|
|
|
|
watcher->setFuture( future );
|
|
|
|
|
} );
|
|
|
|
|
break;
|
|
|
|
|
case NoChoice:
|
|
|
|
|
case Manual:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
updateActionChoicePreview( currentChoice() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|