Disable "Next" button if isNextEnabled() of first step returns false
This commit is contained in:
parent
a75b1809d8
commit
5126458040
@ -92,6 +92,9 @@ ViewManager::addViewStep( ViewStep* step )
|
|||||||
m_prepareSteps.append( step );
|
m_prepareSteps.append( step );
|
||||||
|
|
||||||
insertViewStep( m_steps.size() - 1, 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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user