From 54ac6a49dd9b4860eb406e1e9db85e0743dc5771 Mon Sep 17 00:00:00 2001 From: Lukas Ocilka Date: Mon, 13 May 2013 10:45:55 +0200 Subject: [PATCH] Do not reset disabled items if there was no previous stagemode --- library/control/src/ProductControl.ycp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/control/src/ProductControl.ycp b/library/control/src/ProductControl.ycp index ce5ccbf15..277c7b57f 100644 --- a/library/control/src/ProductControl.ycp +++ b/library/control/src/ProductControl.ycp @@ -906,7 +906,9 @@ global define void UpdateWizardSteps(list 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(); }