summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-03-31 17:49:32 +0000
committerChris Lumens <clumens@redhat.com>2005-03-31 17:49:32 +0000
commita59db71fdb1c7ee76911c6e51010b20287a8197e (patch)
tree84beb25f0664402b09d92b53661db6681de4b0b8 /iw
parentd27b522bd76f8f3e8f1fb14d4b06501c39cae0a9 (diff)
downloadanaconda-a59db71fdb1c7ee76911c6e51010b20287a8197e.tar.gz
anaconda-a59db71fdb1c7ee76911c6e51010b20287a8197e.tar.xz
anaconda-a59db71fdb1c7ee76911c6e51010b20287a8197e.zip
Make sure automatic hostname option isn't greyed out when using a
static IP for installation (#149116).
Diffstat (limited to 'iw')
-rw-r--r--iw/network_gui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 820f74aa9..c7a5e3afc 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -136,12 +136,13 @@ class NetworkWindow(InstallWindow):
def setHostOptionsSensitivity(self):
# figure out if they have overridden using dhcp for hostname
if self.anyUsingDHCP():
+ self.hostnameUseDHCP.set_sensitive(1)
+
if self.hostname != "localhost.localdomain" and self.network.overrideDHCPhostname:
self.hostnameManual.set_active(1)
self.hostnameManual.set_sensitive(1)
else:
self.hostnameUseDHCP.set_active(1)
- self.hostnameUseDHCP.set_sensitive(1)
else:
self.hostnameManual.set_active(1)
self.hostnameUseDHCP.set_sensitive(0)