Fix back/next logic for Next enabled state.

This commit is contained in:
Teo Mrnjavac 2014-06-27 18:18:36 +02:00
parent b2744f912a
commit e6be09982e

View File

@ -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 );
}