summaryrefslogtreecommitdiffstats
path: root/iw/network_gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-02-18 20:57:31 +0000
committerMike Fulbright <msf@redhat.com>2002-02-18 20:57:31 +0000
commit485a21f3572c19c44372bb9bbcc529e56f64ed88 (patch)
tree25258e0b8d113832f2193b7866c71a40db6e55a5 /iw/network_gui.py
parent4af040af8e0cd86cc8180277a5a6ba4877da61fa (diff)
downloadanaconda-485a21f3572c19c44372bb9bbcc529e56f64ed88.tar.gz
anaconda-485a21f3572c19c44372bb9bbcc529e56f64ed88.tar.xz
anaconda-485a21f3572c19c44372bb9bbcc529e56f64ed88.zip
fix for bug #59815
Diffstat (limited to 'iw/network_gui.py')
-rw-r--r--iw/network_gui.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 7d88d9c4e..875235c1c 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -169,9 +169,11 @@ class NetworkWindow(InstallWindow):
devs = self.network.available()
if not devs: return None
- devs.keys().sort()
+ devnames = devs.keys()
+ devnames.sort()
+
num = 0
- for i in devs.keys():
+ for i in devnames:
devbox = gtk.VBox()
align = gtk.Alignment()
DHCPcb = gtk.CheckButton(_("Configure using DHCP"))
@@ -181,7 +183,8 @@ class NetworkWindow(InstallWindow):
align = gtk.Alignment()
bootcb = gtk.CheckButton(_("Activate on boot"))
- onboot = devs[i].get("onboot")
+ onboot = devs[i].get("onboot")
+
bootcb.connect("toggled", self.onBootToggled, devs[i])
bootcb.set_active((num == 0 and not onboot)
or onboot == "yes")
@@ -206,6 +209,7 @@ class NetworkWindow(InstallWindow):
DHCPcb.connect("toggled", self.DHCPtoggled, (devs[i], ipTable))
bootproto = devs[i].get("bootproto")
+
# go ahead and set up DHCP on the first device
DHCPcb.set_active((num == 0 and not bootproto) or
bootproto == "dhcp")