Don't hiccup on NM start/stop

This commit is contained in:
Dan Williams
2007-04-05 00:22:13 -04:00
parent 7a2a480850
commit 396ca0e64e
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ class DevicesModel(gobject.GObject):
pass
def _network_device_removed_cb(self, network_manager, nm_device):
self.remove_device(self._get_network_device(nm_device))
if self._devices.has_key(str(nm_device.get_op())):
self.remove_device(self._get_network_device(nm_device))
def _check_network_device(self, nm_device):
if not nm_device.is_valid():