From f5bb4eec4c3148719a36591b732d653415b9ebc1 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 25 Apr 2008 18:01:00 +0000 Subject: [PATCH] fix wizard GSOD when condition of last step is not fulfilled --- lib/python/Screens/Wizard.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 206a87ce..1d099c9b 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -382,6 +382,13 @@ class Wizard(Screen, HelpableScreen): def updateValues(self): print "Updating values in step " + str(self.currStep) + # calling a step which doesn't exist can only happen if the condition in the last step is not fulfilled + # if a non-existing step is called, end the wizard + if self.currStep >= len(self.wizard): + self.markDone() + self.close() + return + self.timeoutTimer.stop() if self.configInstance is not None: -- 2.30.2