From 26ffb81aa9144f07f0be887d9ef0d6ddcd216393 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 11 Aug 2006 17:47:16 +0000 Subject: Don't enable the back button if there's only non-interactive steps preceeding the current one (#197766). --- dispatch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dispatch.py') diff --git a/dispatch.py b/dispatch.py index 9979c67e6..ee480fff2 100644 --- a/dispatch.py +++ b/dispatch.py @@ -127,10 +127,10 @@ class Dispatcher: # we can not go backwards from this screen i = self.step - 1 while i >= self.firstStep: - if not self.skipSteps.has_key(installSteps[i][0]): - return 1 + if not self.stepIsDirect(i) and not self.skipSteps.has_key(installSteps[i][0]): + return True i = i - 1 - return 0 + return False def setStepList(self, *steps): # only remove non-permanently skipped steps from our skip list -- cgit