diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-07 13:23:44 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-07 13:23:44 (GMT) |
commit | eefad0aeedf7fe6bea68dd0f0e3b33db2b24b223 (patch) | |
tree | a189253ced040de59794edf766fd7848d088d466 /shell/hardware | |
parent | ce6d21075f0732c23b180b9249e34d5466b8690a (diff) |
Do not try to add access points on model removed signal!
Some fixes to access point state.
Diffstat (limited to 'shell/hardware')
-rw-r--r-- | shell/hardware/nmclient.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py index 5d108a3..c0510b8 100644 --- a/shell/hardware/nmclient.py +++ b/shell/hardware/nmclient.py @@ -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 |