From: Stefan Pluecken Date: Fri, 25 Apr 2008 18:01:00 +0000 (+0000) Subject: fix wizard GSOD when condition of last step is not fulfilled X-Git-Tag: 2.6.0~1294 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f5bb4eec4c3148719a36591b732d653415b9ebc1 fix wizard GSOD when condition of last step is not fulfilled --- 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: