Skip to content

Commit

Permalink
Re-enabling all disabled items (steps, proposals) if stagemode has ch…
Browse files Browse the repository at this point in the history
…anged

- bnc#813072
  • Loading branch information
kobliha committed May 2, 2013
1 parent 8db3601 commit 64b4134
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions library/control/src/ProductControl.ycp
Expand Up @@ -87,6 +87,13 @@ list<string> DisabledModules = [];
list<string> DisabledProposals = [];


void ResetDisabledItems () {
DisabledModules = [];
DisabledProposals = [];
DisabledACItems = $[];
DisabledSubProposals = $[];
}

// <--

// Log files for hooks
Expand Down Expand Up @@ -899,6 +906,12 @@ global define void UpdateWizardSteps(list<map> stagemode)
return;
}

// bnc#813072: stagemode has changed, re-enable all disabled modules
// and proposals and other items
if (stagemode != last_stage_mode) {
ResetDisabledItems();
}

last_stage_mode = stagemode;
lastDisabledModules = DisabledModules;

Expand Down

0 comments on commit 64b4134

Please sign in to comment.