From 71fd3ab01051874b6503f2b4095e1a296a83be21 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 2 Apr 2019 05:30:22 -0400 Subject: [PATCH] [partition] Check-which-page consistently --- src/modules/partition/gui/PartitionViewStep.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index 6927dbdbc..509edea13 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -311,10 +311,10 @@ PartitionViewStep::back() bool PartitionViewStep::isNextEnabled() const { - if ( m_choicePage && m_choicePage == m_widget->currentWidget() ) + if ( m_choicePage && m_widget->currentWidget() == m_choicePage ) return m_choicePage->isNextEnabled(); - if ( m_manualPartitionPage && m_manualPartitionPage == m_widget->currentWidget() ) + if ( m_manualPartitionPage && m_widget->currentWidget() == m_manualPartitionPage ) return m_core->hasRootMountPoint(); return false; @@ -331,7 +331,7 @@ PartitionViewStep::isBackEnabled() const bool PartitionViewStep::isAtBeginning() const { - if ( m_widget->currentWidget() == m_manualPartitionPage ) + if ( m_widget->currentWidget() != m_choicePage ) return false; return true; } @@ -340,7 +340,7 @@ PartitionViewStep::isAtBeginning() const bool PartitionViewStep::isAtEnd() const { - if ( m_choicePage == m_widget->currentWidget() ) + if ( m_widget->currentWidget() == m_choicePage ) { if ( m_choicePage->currentChoice() == ChoicePage::Erase || m_choicePage->currentChoice() == ChoicePage::Replace ||