[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Don't allow disabling default repositories.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Don't allow disabling default repositories.
- Date: Thu, 17 Jan 2008 17:26:22 -0500
---
iw/task_gui.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/iw/task_gui.py b/iw/task_gui.py
index b481047..c5952a5 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -278,15 +278,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()
--
1.5.3.7
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]