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

Fixed a few more bugs caused by misnamed variables

This commit is contained in:
imdano
2008-03-05 15:30:22 +00:00
parent cb88439499
commit 0bd129df85
2 changed files with 6 additions and 3 deletions

5
gui.py
View File

@@ -961,6 +961,7 @@ class WirelessNetworkEntry(NetworkEntry):
"""
self.disconnect(self.wifides)
self.advanced_dialog.destroy_called()
del self.advanced_dialog
for obj in vars(self):
if hasattr(obj, "destroy"):
obj.destroy()
@@ -1660,7 +1661,7 @@ class appGui:
encryption_info = entry.encryption_info
encrypt_methods = misc.LoadEncryptionMethods()
wireless.SetWirelessProperty(networkid, "enctype",
encrypt_methods[entry.comboEncryption.
encrypt_methods[entry.combo_encryption.
get_active()][1])
for x in encryption_info:
if encryption_info[x].get_text() == "":
@@ -1678,7 +1679,7 @@ class appGui:
wireless.SetWirelessProperty(networkid, "enctype", "None")
wireless.SetWirelessProperty(networkid, "automatic",
noneToString(netent.checkboxAutoConnect.get_active()))
noneToString(netent.chkbox_autoconnect.get_active()))
# Save IP info
if entry.chkbox_static_ip.get_active():
wireless.SetWirelessProperty(networkid, "ip",

View File

@@ -130,7 +130,9 @@ def Noneify(variable):
return None
if variable in ("False", "0"):
return False
return bool(variable)
if variable in ("True", "1"):
return True
return variable
def ParseEncryption(network):
""" Parse through an encryption template file