Disable "Next" button if isNextEnabled() of first step returns false

This commit is contained in:
Aurélien Gâteau 2014-08-01 10:29:41 +02:00
parent a75b1809d8
commit 5126458040

View File

@ -92,6 +92,9 @@ ViewManager::addViewStep( ViewStep* step )
m_prepareSteps.append( step );
insertViewStep( m_steps.size() - 1, step );
// If this is the first inserted view step, update status of "Next" button
if ( m_prepareSteps.count() == 1 )
m_next->setEnabled( step->isNextEnabled() );
}