From 65278605fe54384162905dc951d69c1b3ff61f7b Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 18 Dec 2015 15:03:31 +0100 Subject: [PATCH] clearJobs is enough on replace partition selection. --- src/modules/partition/gui/ChoicePage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 2b7cc9140..d5e175966 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -453,7 +453,8 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged, 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 // main DeviceModel, not the immutable copy. @@ -465,7 +466,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) selectedDevice(), partition ); } ); - + break; case NoChoice: case Manual: break;