mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Fixed a few more bugs caused by misnamed variables
This commit is contained in:
5
gui.py
5
gui.py
@@ -961,6 +961,7 @@ class WirelessNetworkEntry(NetworkEntry):
|
|||||||
"""
|
"""
|
||||||
self.disconnect(self.wifides)
|
self.disconnect(self.wifides)
|
||||||
self.advanced_dialog.destroy_called()
|
self.advanced_dialog.destroy_called()
|
||||||
|
del self.advanced_dialog
|
||||||
for obj in vars(self):
|
for obj in vars(self):
|
||||||
if hasattr(obj, "destroy"):
|
if hasattr(obj, "destroy"):
|
||||||
obj.destroy()
|
obj.destroy()
|
||||||
@@ -1660,7 +1661,7 @@ class appGui:
|
|||||||
encryption_info = entry.encryption_info
|
encryption_info = entry.encryption_info
|
||||||
encrypt_methods = misc.LoadEncryptionMethods()
|
encrypt_methods = misc.LoadEncryptionMethods()
|
||||||
wireless.SetWirelessProperty(networkid, "enctype",
|
wireless.SetWirelessProperty(networkid, "enctype",
|
||||||
encrypt_methods[entry.comboEncryption.
|
encrypt_methods[entry.combo_encryption.
|
||||||
get_active()][1])
|
get_active()][1])
|
||||||
for x in encryption_info:
|
for x in encryption_info:
|
||||||
if encryption_info[x].get_text() == "":
|
if encryption_info[x].get_text() == "":
|
||||||
@@ -1678,7 +1679,7 @@ class appGui:
|
|||||||
wireless.SetWirelessProperty(networkid, "enctype", "None")
|
wireless.SetWirelessProperty(networkid, "enctype", "None")
|
||||||
|
|
||||||
wireless.SetWirelessProperty(networkid, "automatic",
|
wireless.SetWirelessProperty(networkid, "automatic",
|
||||||
noneToString(netent.checkboxAutoConnect.get_active()))
|
noneToString(netent.chkbox_autoconnect.get_active()))
|
||||||
# Save IP info
|
# Save IP info
|
||||||
if entry.chkbox_static_ip.get_active():
|
if entry.chkbox_static_ip.get_active():
|
||||||
wireless.SetWirelessProperty(networkid, "ip",
|
wireless.SetWirelessProperty(networkid, "ip",
|
||||||
|
|||||||
4
misc.py
4
misc.py
@@ -130,7 +130,9 @@ def Noneify(variable):
|
|||||||
return None
|
return None
|
||||||
if variable in ("False", "0"):
|
if variable in ("False", "0"):
|
||||||
return False
|
return False
|
||||||
return bool(variable)
|
if variable in ("True", "1"):
|
||||||
|
return True
|
||||||
|
return variable
|
||||||
|
|
||||||
def ParseEncryption(network):
|
def ParseEncryption(network):
|
||||||
""" Parse through an encryption template file
|
""" Parse through an encryption template file
|
||||||
|
|||||||
Reference in New Issue
Block a user