mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 21:08:06 +01:00
Really fixed bug 355693. :)
This commit is contained in:
@@ -530,7 +530,8 @@ class appGUI():
|
|||||||
|
|
||||||
#if wireless.GetNumberOfNetworks() == 0:
|
#if wireless.GetNumberOfNetworks() == 0:
|
||||||
# wireless.Scan()
|
# wireless.Scan()
|
||||||
self.focusloc = (1,0)
|
# FIXME: This should be two variables
|
||||||
|
self.focusloc = [1,0]
|
||||||
|
|
||||||
# These are empty to make sure that things go my way.
|
# These are empty to make sure that things go my way.
|
||||||
wiredL,wlessL = [],[]# = gen_network_list()
|
wiredL,wlessL = [],[]# = gen_network_list()
|
||||||
@@ -656,7 +657,7 @@ class appGUI():
|
|||||||
else:
|
else:
|
||||||
where = self.thePile.get_focus().get_focus()[1]
|
where = self.thePile.get_focus().get_focus()[1]
|
||||||
#where = self.wlessLB.get_focus()[1]
|
#where = self.wlessLB.get_focus()[1]
|
||||||
self.focusloc = (wlessorwired,where)
|
self.focusloc = [wlessorwired,where]
|
||||||
|
|
||||||
# Be clunky until I get to a later stage of development.
|
# Be clunky until I get to a later stage of development.
|
||||||
# Update the list of networks. Usually called by DBus.
|
# Update the list of networks. Usually called by DBus.
|
||||||
@@ -710,7 +711,10 @@ class appGUI():
|
|||||||
if not firstrun:
|
if not firstrun:
|
||||||
self.frame.body = self.thePile
|
self.frame.body = self.thePile
|
||||||
#if self.focusloc[0] == self.wlessLB:
|
#if self.focusloc[0] == self.wlessLB:
|
||||||
self.wlessLB.set_focus(self.focusloc[1])
|
if self.focusloc[1] == None:
|
||||||
|
self.focusloc[1] = 0
|
||||||
|
if self.wlessLB != self.no_wlan:
|
||||||
|
self.wlessLB.set_focus(self.focusloc[1])
|
||||||
#self.thePile.get_focus().set_focus(self.focusloc[1])
|
#self.thePile.get_focus().set_focus(self.focusloc[1])
|
||||||
#self.always_show_wired = not self.always_show_wired
|
#self.always_show_wired = not self.always_show_wired
|
||||||
self.prev_state = state
|
self.prev_state = state
|
||||||
|
|||||||
Reference in New Issue
Block a user