From e6be09982edccb32d053909e6b58ad89ae694429 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 Jun 2014 18:18:36 +0200 Subject: [PATCH] Fix back/next logic for Next enabled state. --- src/calamares/ViewManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calamares/ViewManager.cpp b/src/calamares/ViewManager.cpp index d41a0eb65..26cd9d871 100644 --- a/src/calamares/ViewManager.cpp +++ b/src/calamares/ViewManager.cpp @@ -109,7 +109,7 @@ ViewManager::next() } else return; - m_next->setEnabled( step->isNextEnabled() ); + m_next->setEnabled( m_steps.at( m_currentStep )->isNextEnabled() ); m_back->setEnabled( true ); } @@ -129,7 +129,7 @@ ViewManager::back() } else return; - m_next->setEnabled( step->isNextEnabled() ); + m_next->setEnabled( m_steps.at( m_currentStep )->isNextEnabled() ); if ( m_currentStep == 0 && m_steps.first()->isAtBeginning() ) m_back->setEnabled( false ); }