summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui/gui/hubs
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-06-21 14:45:28 -0400
committerChris Lumens <clumens@redhat.com>2012-06-21 16:43:57 -0400
commit737aa3df9c69658c8a9a77a28523987cde3d9cc3 (patch)
tree08ce4ad15478f26a973b9f13c48c23dcdaea3edf /pyanaconda/ui/gui/hubs
parent8949810a526db5ad27a439cce89de1b93b1fb4f7 (diff)
downloadanaconda-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__.py4
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.