aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Wizard.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-25 18:01:00 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-25 18:01:00 +0000
commitf5bb4eec4c3148719a36591b732d653415b9ebc1 (patch)
tree001adb9927a60ea53c602ef87cc514773e6b9347 /lib/python/Screens/Wizard.py
parentff514b2103828e7f4aa55ccb7833f5e2626d43c6 (diff)
downloadenigma2-f5bb4eec4c3148719a36591b732d653415b9ebc1.tar.gz
enigma2-f5bb4eec4c3148719a36591b732d653415b9ebc1.zip
fix wizard GSOD when condition of last step is not fulfilled
Diffstat (limited to 'lib/python/Screens/Wizard.py')
-rw-r--r--lib/python/Screens/Wizard.py7
1 files changed, 7 insertions, 0 deletions
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: