mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 21:38:06 +01:00
Do nothing if the user makes a connection attempt while scanning.
This commit is contained in:
@@ -822,15 +822,16 @@ class appGUI():
|
|||||||
self.frame.set_body(self.diag)
|
self.frame.set_body(self.diag)
|
||||||
self.diag_type = 'conf'
|
self.diag_type = 'conf'
|
||||||
if "enter" in keys or 'C' in keys:
|
if "enter" in keys or 'C' in keys:
|
||||||
focus = self.frame.body.get_focus()
|
if not self.scanning:
|
||||||
if focus == self.wiredCB:
|
focus = self.frame.body.get_focus()
|
||||||
self.special = focus
|
if focus == self.wiredCB:
|
||||||
self.connect("wired",0)
|
self.special = focus
|
||||||
else:
|
self.connect("wired",0)
|
||||||
# wless list only other option, if it is around
|
else:
|
||||||
if self.wlessLB != self.no_wlan:
|
# wless list only other option, if it is around
|
||||||
wid,pos = self.thePile.get_focus().get_focus()
|
if self.wlessLB != self.no_wlan:
|
||||||
self.connect("wireless",pos)
|
wid,pos = self.thePile.get_focus().get_focus()
|
||||||
|
self.connect("wireless",pos)
|
||||||
if "esc" in keys:
|
if "esc" in keys:
|
||||||
# Force disconnect here if connection in progress
|
# Force disconnect here if connection in progress
|
||||||
if self.connecting:
|
if self.connecting:
|
||||||
|
|||||||
Reference in New Issue
Block a user