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

Brian C. Lane bcl at redhat.com
Thu Jan 29 23:08:25 UTC 2015


On Thu, Jan 29, 2015 at 05:19:36PM -0500, Chris Lumens wrote:
> 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

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list