Do not try to add access points on model removed signal!

Some fixes to access point state.
This commit is contained in:
Marco Pesenti Gritti
2007-03-07 14:23:44 +01:00
parent ce6d21075f
commit eefad0aeed
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -288,8 +288,10 @@ class Device(gobject.GObject):
def set_active_network(self, network):
if self._active_network == network:
return
if self._active_network:
self._active_network.disconnect(self._ssid_sid)
self._active_network.set_state(NETWORK_STATE_NOTCONNECTED)
self._active_network = network