dont re-ask parental pin on change subservices
[enigma2.git] / lib / python / Screens / Wizard.py
index 1d099c9bd5a863f1e8887bdfc629aa71e45fe01d..c4fcb10a4156669d47a1f8a2df7bb1991e1371f2 100644 (file)
@@ -188,6 +188,8 @@ class Wizard(Screen, HelpableScreen):
                
                self.lcdCallbacks = []
                
+               self.disableKeys = False
+               
                self["actions"] = NumberActionMap(["WizardActions", "NumberActions", "ColorActions"],
                {
                        "ok": self.ok,
@@ -232,6 +234,8 @@ class Wizard(Screen, HelpableScreen):
                self.lcdCallbacks.append(callback)
 
        def back(self):
+               if self.disableKeys:
+                       return
                print "getting back..."
                print "stepHistory:", self.stepHistory
                if len(self.stepHistory) > 1:
@@ -291,6 +295,8 @@ class Wizard(Screen, HelpableScreen):
 
        def ok(self):
                print "OK"
+               if self.disableKeys:
+                       return
                currStep = self.currStep
                
                if self.showConfig:
@@ -384,7 +390,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 
-               if self.currStep >= len(self.wizard):
+               if self.currStep > len(self.wizard):
                        self.markDone()
                        self.close()
                        return