From 21d3be0fcedb2f56addc2e54a8d95b56c1d6dbc1 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 26 Oct 2009 17:10:41 -0600 Subject: [PATCH] Fix goto previous if unable to go back --- dispatch.py | 3 ++- text.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dispatch.py b/dispatch.py index 5643707..c7f1990 100644 --- a/dispatch.py +++ b/dispatch.py @@ -175,7 +175,8 @@ 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]): + if (not self.skipSteps.has_key(installSteps[i][0]) + and (type(installSteps[i][1]) != FunctionType)): return 1 i = i - 1 return 0 diff --git a/text.py b/text.py index 8a24be5..ffb2751 100644 --- a/text.py +++ b/text.py @@ -506,7 +506,8 @@ class InstallInterface: "from here. You will have to try " "again."), buttons=[_("OK")]) - dispatch.gotoPrev() + else: + dispatch.gotoPrev() else: dispatch.gotoNext() -- 1.5.5.6