[PATCH] Don't process continue-clicked events for windows that aren't shown.

Chris Lumens clumens at redhat.com
Thu Jan 29 22:19:36 UTC 2015


This is another tactic in trying to fix the frequent kickstart problem of
processing a continue-clicked event twice:  once when the summary hub is up,
and then very shortly after when the progress hub is up.  This fix will
ignore any events where the window we should be operating on is not the one
that is currently displayed.
---
 pyanaconda/ui/gui/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
index 3927353..b775a54 100644
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -746,7 +746,7 @@ class GraphicalUserInterface(UserInterface):
     ### SIGNAL HANDLING METHODS
     ###
     def _on_continue_clicked(self, win, user_data=None):
-        if not win.get_may_continue():
+        if not win.get_may_continue() or win != self._currentAction.window:
             return
 
         # If we're on the last screen, clicking Continue quits.
-- 
2.2.1



More information about the anaconda-patches mailing list