1
0
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:
Andrew Psaltis
2009-06-24 19:10:30 -04:00
parent 1cd377f15f
commit 5f14b7a7fa

View File

@@ -822,15 +822,16 @@ class appGUI():
self.frame.set_body(self.diag)
self.diag_type = 'conf'
if "enter" in keys or 'C' in keys:
focus = self.frame.body.get_focus()
if focus == self.wiredCB:
self.special = focus
self.connect("wired",0)
else:
# wless list only other option, if it is around
if self.wlessLB != self.no_wlan:
wid,pos = self.thePile.get_focus().get_focus()
self.connect("wireless",pos)
if not self.scanning:
focus = self.frame.body.get_focus()
if focus == self.wiredCB:
self.special = focus
self.connect("wired",0)
else:
# wless list only other option, if it is around
if self.wlessLB != self.no_wlan:
wid,pos = self.thePile.get_focus().get_focus()
self.connect("wireless",pos)
if "esc" in keys:
# Force disconnect here if connection in progress
if self.connecting: