diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 0cf503521..b740c23c9 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -556,11 +556,6 @@ ChoicePage::doAlongsideApply() QMutexLocker locker( &m_coreMutex ); - if ( m_core->isDirty() ) - { - m_core->revert(); - } - QString path = m_beforePartitionBarsView-> selectionModel()-> currentIndex().data( PartitionModel::PartitionPathRole ).toString(); diff --git a/src/modules/partition/gui/ChoicePage.h b/src/modules/partition/gui/ChoicePage.h index df10f297e..4b2753cc7 100644 --- a/src/modules/partition/gui/ChoicePage.h +++ b/src/modules/partition/gui/ChoicePage.h @@ -65,6 +65,7 @@ public: Choice currentChoice() const; void onLeave(); + void applyActionChoice( ChoicePage::Choice choice ); signals: void nextStatusChanged( bool ); @@ -84,7 +85,6 @@ private: void applyDeviceChoice(); void continueApplyDeviceChoice(); void updateDeviceStatePreview(); - void applyActionChoice( ChoicePage::Choice choice ); void updateActionChoicePreview( ChoicePage::Choice choice ); void setupActions(); OsproberEntryList getOsproberEntriesForDevice( Device* device ) const; diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index a79af96a1..22f74e3f6 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -368,8 +368,10 @@ void PartitionViewStep::onActivate() { // if we're coming back to PVS from the next VS - if ( m_widget->currentWidget() == m_choicePage ) + if ( m_widget->currentWidget() == m_choicePage && + m_choicePage->currentChoice() == ChoicePage::Alongside ) { + m_choicePage->applyActionChoice( ChoicePage::Alongside ); // m_choicePage->reset(); //FIXME: ReplaceWidget should be reset maybe? }