From e628a3c3a3145dc32c8f2f6854867e2b47707529 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 20 Feb 2013 07:26:50 -0500 Subject: If you attempt to search on the network device pane, don't crash. --- 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 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) -- cgit