summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2001-02-28 17:04:50 +0000
committerbfox <bfox>2001-02-28 17:04:50 +0000
commitfe2a9278a9d51c04acf0b05fbc9dc90f86cf86e6 (patch)
tree29bb913e7d1ca9184413641bc698900ba0e0498b /iw
parent546e833acbae52530446028c2f0e8f79bd438cce (diff)
downloadanaconda-fe2a9278a9d51c04acf0b05fbc9dc90f86cf86e6.tar.gz
anaconda-fe2a9278a9d51c04acf0b05fbc9dc90f86cf86e6.tar.xz
anaconda-fe2a9278a9d51c04acf0b05fbc9dc90f86cf86e6.zip
Resolved bug #29085. Fixes crash if more than one nic interface.
Diffstat (limited to 'iw')
-rw-r--r--iw/firewall_gui.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/iw/firewall_gui.py b/iw/firewall_gui.py
index 62ea0fed2..defe8f9f5 100644
--- a/iw/firewall_gui.py
+++ b/iw/firewall_gui.py
@@ -35,18 +35,16 @@ class FirewallWindow (InstallWindow):
if self.radio5.get_active ():
self.todo.firewallState = 1
-
count = 0
+ self.todo.firewall.trustdevs = []
+
for device in self.devices:
(val, row_data, header) = self.trusted.get_row_data (count)
-
+
if val == 1:
self.todo.firewall.trustdevs.append(device)
- elif val == 0:
- pass
-
- count = count + 1
+ count = count + 1
for i in range(6):
(val, row_data, header) = self.incoming.get_row_data (i)
@@ -261,6 +259,8 @@ class FirewallWindow (InstallWindow):
else:
if device in self.todo.firewall.trustdevs:
self.trusted.append_row ((device, device), TRUE)
+ else:
+ self.trusted.append_row ((device, device), FALSE)
if self.todo.network.netdevices[device].get('bootproto') == 'dhcp':
self.todo.firewall.dhcp = 1
@@ -302,8 +302,6 @@ class FirewallWindow (InstallWindow):
table.attach (self.label3, 0, 1, 2, 3, FILL, FILL, 5, 5)
table.attach (self.ports, 1, 2, 2, 3, EXPAND|FILL, FILL, 5, 5)
-# print self.todo.firewall.policy
-
if self.todo.firewall.enabled == 0:
self.radio3.set_active (TRUE)
elif self.todo.firewall.policy == 0: