Skip to content

Commit

Permalink
Do not reset disabled items if there was no previous stagemode
Browse files Browse the repository at this point in the history
  • Loading branch information
kobliha committed May 13, 2013
1 parent 43cfa45 commit 54ac6a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/control/src/ProductControl.ycp
Expand Up @@ -906,7 +906,9 @@ global define void UpdateWizardSteps(list<map> stagemode)

// bnc#813072: stagemode has changed, re-enable all disabled modules
// and proposals and other items
if (stagemode != last_stage_mode) {
// function must not be called if there was no previous stage_mode
// otherwise it resets everything
if (size(last_stage_mode) > 0 && stagemode != last_stage_mode) {
ResetDisabledItems();
}

Expand Down

0 comments on commit 54ac6a4

Please sign in to comment.