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

Fixed typo preventing DHCP hostname from properly working

This commit is contained in:
David Paleino
2012-02-05 18:16:45 +01:00
parent 2f2b4bc08c
commit 69568b2d25

View File

@@ -281,7 +281,7 @@ class AdvancedSettingsDialog(gtk.Dialog):
self.set_net_prop("dns1", '') self.set_net_prop("dns1", '')
self.set_net_prop("dns2", '') self.set_net_prop("dns2", '')
self.set_net_prop("dns3", '') self.set_net_prop("dns3", '')
self.set_net_prop('use_dhcphostname', self.set_net_prop('usedhcphostname',
self.chkbox_use_dhcp_hostname.get_active()) self.chkbox_use_dhcp_hostname.get_active())
self.set_net_prop("dhcphostname",noneToString(self.txt_dhcp_hostname.get_text())) self.set_net_prop("dhcphostname",noneToString(self.txt_dhcp_hostname.get_text()))
@@ -556,7 +556,7 @@ class WirelessSettingsDialog(AdvancedSettingsDialog):
'use_settings_globally'))) 'use_settings_globally')))
self.chkbox_use_dhcp_hostname.set_active( self.chkbox_use_dhcp_hostname.set_active(
bool(wireless.GetWirelessProperty(networkID, 'use_dhcphostname'))) bool(wireless.GetWirelessProperty(networkID, 'usedhcphostname')))
dhcphname = wireless.GetWirelessProperty(networkID,"dhcphostname") dhcphname = wireless.GetWirelessProperty(networkID,"dhcphostname")