summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2013-02-20 07:26:50 -0500
committerChris Lumens <clumens@redhat.com>2013-02-20 07:26:50 -0500
commite628a3c3a3145dc32c8f2f6854867e2b47707529 (patch)
tree4c5dea468ffab5705d75689c04d70b897c65554d
parent06609c9a6cd4fce3a79be207ef78858a917948d7 (diff)
downloadanaconda-e628a3c3a3145dc32c8f2f6854867e2b47707529.tar.gz
anaconda-e628a3c3a3145dc32c8f2f6854867e2b47707529.tar.xz
anaconda-e628a3c3a3145dc32c8f2f6854867e2b47707529.zip
If you attempt to search on the network device pane, don't crash.
-rw-r--r--pyanaconda/ui/gui/spokes/network.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 2c3ca5c96..462331d23 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -363,6 +363,9 @@ class NetworkControlBox(object):
# Signal handlers.
def on_device_selection_changed(self, *args):
device = self.selected_device()
+ if not device:
+ return
+
log.debug("network: selected device %s" % device.get_iface())
self.refresh_ui(device)