summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-29 04:40:33 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-29 04:40:33 +0000
commitc143077ac54cd94431cd5b71e856b0fce867fc68 (patch)
tree1cfd005d7ef3d09e5cba09ad8ba4bb296db8dfc2
parentfe63ceb8aae9c68a379d5783bfb2b20eb87d08cb (diff)
downloadanaconda-c143077ac54cd94431cd5b71e856b0fce867fc68.tar.gz
anaconda-c143077ac54cd94431cd5b71e856b0fce867fc68.tar.xz
anaconda-c143077ac54cd94431cd5b71e856b0fce867fc68.zip
make it so that we change the default on the first click on the toggle instead of requiring the row to be selected (#68265)
-rw-r--r--iw/osbootwidget.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index ee7c6278f..ac176bf41 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -345,14 +345,10 @@ class OSBootWidget:
self.editOther(dev, label, isDefault, isRoot)
# the default os was changed in the treeview
- def toggledDefault(self, widget, *args):
- if widget.get_active():
- return
-
- rc = self.getSelected()
- if not rc:
- return
- self.defaultDev = rc[0]
+ def toggledDefault(self, data, row):
+ iter = self.osStore.get_iter((int(row),))
+ dev = self.osStore.get_value(iter, 2)
+ self.defaultDev = dev[5:]
self.fillOSList()
# fill in the os list tree view