wizard steps start with 1, not 0
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 25 Apr 2008 18:06:40 +0000 (18:06 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 25 Apr 2008 18:06:40 +0000 (18:06 +0000)
lib/python/Screens/Wizard.py

index 1d099c9bd5a863f1e8887bdfc629aa71e45fe01d..58697fe82ba53b110b1c58b031b5f3bb23ef8d12 100644 (file)
@@ -384,7 +384,7 @@ class Wizard(Screen, HelpableScreen):
                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 
                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):
+               if self.currStep > len(self.wizard):
                        self.markDone()
                        self.close()
                        return
                        self.markDone()
                        self.close()
                        return