clearJobs is enough on replace partition selection.

main
Teo Mrnjavac 9 years ago
parent ad2ce6b6d4
commit 65278605fe

@ -453,7 +453,8 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged, connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged,
this, [ this ]( const QModelIndex& current, const QModelIndex& previous ) this, [ this ]( const QModelIndex& current, const QModelIndex& previous )
{ {
m_core->revertDevice( selectedDevice() ); if ( m_core->isDirty() )
m_core->clearJobs();
// We can't use the PartitionPtrRole because we need to make changes to the // We can't use the PartitionPtrRole because we need to make changes to the
// main DeviceModel, not the immutable copy. // main DeviceModel, not the immutable copy.
@ -465,7 +466,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
selectedDevice(), selectedDevice(),
partition ); partition );
} ); } );
break;
case NoChoice: case NoChoice:
case Manual: case Manual:
break; break;

Loading…
Cancel
Save