From d11f67c84893202b08c2b461aec2e5ecf8454e0a Mon Sep 17 00:00:00 2001 From: compwiz18 <> Date: Fri, 17 Aug 2007 04:36:16 +0000 Subject: [PATCH] fixed the tray icon --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 6858a58..e872546 100644 --- a/daemon.py +++ b/daemon.py @@ -511,7 +511,7 @@ class ConnectionWizard(dbus.service.Object): def GetCurrentNetworkID(self): '''returns the id of the current network, or -1 if network is not found''' currentESSID = self.GetCurrentNetwork() - for x in self.LastScan: + for x in xrange(0,len(self.LastScan)): if self.LastScan[x]['essid'] == currentESSID: print 'current network found, id is ',x return x