[PATCH] Fix selection of default boot target in UI (#548695)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Corrects translation between device name and device path. Changes rendering
style of toggle button in list from check to radio (which is how it behaves).
---
 iw/osbootwidget.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index 86f1718..fcde027 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -70,6 +70,7 @@ class OSBootWidget:
                                     active = 0)
         column.set_sizing(gtk.TREE_VIEW_COLUMN_AUTOSIZE)
         self.checkboxrenderer.connect("toggled", self.toggledDefault)
+        self.checkboxrenderer.set_radio(True)
         self.osTreeView.append_column(column)
 
         for columnTitle in theColumns[1:]:
@@ -336,7 +337,7 @@ class OSBootWidget:
     def toggledDefault(self, data, row):
         iter = self.osStore.get_iter((int(row),))
         dev = self.osStore.get_value(iter, 2)
-        self.defaultDev = dev[5:]
+        self.defaultDev = devicePathToName(dev)
         self.fillOSList()
 
     # fill in the os list tree view
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux