diff options
author | Chris Lumens <clumens@redhat.com> | 2012-06-21 14:45:28 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-06-21 16:43:57 -0400 |
commit | 737aa3df9c69658c8a9a77a28523987cde3d9cc3 (patch) | |
tree | 08ce4ad15478f26a973b9f13c48c23dcdaea3edf /pyanaconda/ui/gui/hubs | |
parent | 8949810a526db5ad27a439cce89de1b93b1fb4f7 (diff) | |
download | anaconda-737aa3df9c69658c8a9a77a28523987cde3d9cc3.tar.gz anaconda-737aa3df9c69658c8a9a77a28523987cde3d9cc3.tar.xz anaconda-737aa3df9c69658c8a9a77a28523987cde3d9cc3.zip |
Indirect spokes do not have a selector, so guard the focus grab.
Diffstat (limited to 'pyanaconda/ui/gui/hubs')
-rw-r--r-- | pyanaconda/ui/gui/hubs/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyanaconda/ui/gui/hubs/__init__.py b/pyanaconda/ui/gui/hubs/__init__.py index f927faeba..17bd7201a 100644 --- a/pyanaconda/ui/gui/hubs/__init__.py +++ b/pyanaconda/ui/gui/hubs/__init__.py @@ -274,7 +274,9 @@ class Hub(UIObject): event.keyval not in [Gdk.KEY_space, Gdk.KEY_Return, Gdk.KEY_ISO_Enter, Gdk.KEY_KP_Enter, Gdk.KEY_KP_Space]: return - selector.grab_focus() + if selector: + selector.grab_focus() + self._runSpoke(spoke) # Now update the selector with the current status and completeness. |