Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/hardware/nmclient.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-11 10:40:23 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-11 10:40:23 (GMT)
commit0c1a017932cb80832fcf0863a38f48d9e08cb311 (patch)
treec9c3313b974f08d2c67bdaa795427d3e1b342931 /shell/hardware/nmclient.py
parentdde018a63e4cd60cb983136b295653b3db195ebf (diff)
#1720 nmclient.Device was not returning the ssid of the active network.
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r--shell/hardware/nmclient.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py
index 631a352..b699a04 100644
--- a/shell/hardware/nmclient.py
+++ b/shell/hardware/nmclient.py
@@ -211,7 +211,6 @@ class Device(gobject.GObject):
self._networks = {}
self._caps = 0
self._state = DEVICE_STATE_INACTIVE
- self._ssid = None
self._active_network = None
obj = sys_bus.get_object(NM_SERVICE, self._op)
@@ -401,7 +400,10 @@ class Device(gobject.GObject):
error_handler=self._get_active_net_error_cb)
def get_ssid(self):
- return self._ssid
+ if self._active_network and self._active_network.is_valid():
+ return self._active_network.get_ssid()
+ elif not self._active_network:
+ return None
def get_type(self):
return self._type