summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--dispatch.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 747047304..55cda965c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-08-11 Chris Lumens <clumens@redhat.com>
+ * dispatch.py (Dispatch.canGoBack): Don't enable the back button if
+ there's only non-interactive steps preceeding the current one
+ (#197766).
+
* iutil.py (execWithCapture): Capture stderr output too (useful for
logging VNC error messages).
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