Author: coolo Date: Sun Jan 27 16:17:11 2008 New Revision: 43925 URL: http://svn.opensuse.org/viewcvs/yast?rev=43925&view=rev Log: make sure we always have a current step Modified: trunk/qt/src/YQWizard.cc Modified: trunk/qt/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=43925&r1=43924&r2=43925&view=diff ============================================================================== --- trunk/qt/src/YQWizard.cc (original) +++ trunk/qt/src/YQWizard.cc Sun Jan 27 16:17:11 2008 @@ -261,6 +261,10 @@ } _stepsIDs.insert( qId, _stepsList.last() ); + + // make sure we always have a current step if we have steps + if ( _currentStepID.isNull() ) + _currentStepID = qId; } @@ -426,6 +430,7 @@ qDeleteAll(_stepsList); _stepsList.clear(); _stepsIDs.clear(); + _currentStepID = QString::null; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org