1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 04:48:00 +01:00

fixed the tray icon

This commit is contained in:
compwiz18
2007-08-17 04:36:16 +00:00
parent 1be2d485d7
commit d11f67c848

View File

@@ -511,7 +511,7 @@ class ConnectionWizard(dbus.service.Object):
def GetCurrentNetworkID(self): def GetCurrentNetworkID(self):
'''returns the id of the current network, or -1 if network is not found''' '''returns the id of the current network, or -1 if network is not found'''
currentESSID = self.GetCurrentNetwork() currentESSID = self.GetCurrentNetwork()
for x in self.LastScan: for x in xrange(0,len(self.LastScan)):
if self.LastScan[x]['essid'] == currentESSID: if self.LastScan[x]['essid'] == currentESSID:
print 'current network found, id is ',x print 'current network found, id is ',x
return x return x