Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/hardware/nmclient.py2
-rw-r--r--shell/model/accesspointmodel.py2
-rw-r--r--shell/view/home/MeshBox.py2
-rwxr-xr-xtools/build-snapshot.sh2
4 files changed, 5 insertions, 3 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
diff --git a/shell/model/accesspointmodel.py b/shell/model/accesspointmodel.py
index 02899c0..9762d2c 100644
--- a/shell/model/accesspointmodel.py
+++ b/shell/model/accesspointmodel.py
@@ -74,5 +74,5 @@ class AccessPointModel(gobject.GObject):
elif pspec.name == 'name':
return self._nm_network.get_ssid()
elif pspec.name == 'state':
- nm_state = self._nm_device.get_state()
+ nm_state = self._nm_network.get_state()
return _nm_state_to_state[nm_state]
diff --git a/shell/view/home/MeshBox.py b/shell/view/home/MeshBox.py
index c8d050c..df6b8ec 100644
--- a/shell/view/home/MeshBox.py
+++ b/shell/view/home/MeshBox.py
@@ -170,7 +170,7 @@ class MeshBox(SpreadBox):
self._add_access_point(ap_model)
def _access_point_removed_cb(self, model, ap_model):
- self._add_access_point(ap_model)
+ self._remove_access_point(ap_model)
def _add_alone_buddy(self, buddy_model):
icon = BuddyIcon(self._shell, self._menu_shell, buddy_model)
diff --git a/tools/build-snapshot.sh b/tools/build-snapshot.sh
index cbcb656..717caee 100755
--- a/tools/build-snapshot.sh
+++ b/tools/build-snapshot.sh
@@ -1,6 +1,6 @@
VERSION=0.63
DATE=`date +%Y%m%d`
-RELEASE=2.42
+RELEASE=2.44
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
rm sugar-$VERSION.tar.bz2