summaryrefslogtreecommitdiffstats
path: root/iw/task_gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-02-06 16:37:29 -0500
committerChris Lumens <clumens@redhat.com>2008-02-06 16:37:29 -0500
commit2eed13017c7e0b6a01d78c3835a70a49d5c29204 (patch)
tree559108414e5bb78e0d632a8a59bde21c33a5cef6 /iw/task_gui.py
parent79c9fa48206b3ee083a0588b0dc2af99c4fa8c85 (diff)
downloadanaconda-2eed13017c7e0b6a01d78c3835a70a49d5c29204.tar.gz
anaconda-2eed13017c7e0b6a01d78c3835a70a49d5c29204.tar.xz
anaconda-2eed13017c7e0b6a01d78c3835a70a49d5c29204.zip
Don't allow disabling default repositories.
Diffstat (limited to 'iw/task_gui.py')
-rw-r--r--iw/task_gui.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/iw/task_gui.py b/iw/task_gui.py
index 2fb5c6447..495a2c47a 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -296,15 +296,20 @@ class TaskWindow(InstallWindow):
checkbox = self.dxml.get_widget("proxyCheckbox")
table.set_sensitive(checkbox.get_active())
- def _taskToggled(self, data, row, store):
+ def _taskToggled(self, button, row, store):
i = store.get_iter(int(row))
val = store.get_value(i, 0)
store.set_value(i, 0, not val)
- def _repoToggled(self, data, row, store):
+ def _repoToggled(self, button, row, store):
i = store.get_iter(int(row))
val = store.get_value(i, 0)
+ # The base repositories can never be disabled, but they can be edited.
+ if val and not store.get_value(i, 2).addon:
+ button.set_active(True)
+ return
+
if not val and not network.hasActiveNetDev():
net = NetworkConfigurator(self.anaconda.id.network)
ret = net.run()