[PATCH 3/3] If you attempt to search on the network device pane, don't crash.
Chris Lumens
clumens at redhat.com
Wed Feb 20 12:33:14 UTC 2013
---
pyanaconda/ui/gui/spokes/network.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 2c3ca5c..462331d 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)
--
1.8.1.2
More information about the anaconda-patches
mailing list