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

[PATCH 4/7] ui: fix the default choice in the 'advanced storage options' dialog.



note that the list of buttons in the radio group have them in reverse
order as specified in the glade .xml.
---
 pyanaconda/iw/advanced_storage.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/iw/advanced_storage.py b/pyanaconda/iw/advanced_storage.py
index 2f6b487..130fa18 100644
--- a/pyanaconda/iw/advanced_storage.py
+++ b/pyanaconda/iw/advanced_storage.py
@@ -222,9 +222,9 @@ def addDrive(anaconda):
         dxml.get_widget("fcoeRadio").set_sensitive(False)
         dxml.get_widget("fcoeRadio").set_active(False)
 
-    #figure out what advanced devices we have available and set sensible default
+    #figure out what advanced devices we have available and put focus on the first one
     group = dxml.get_widget("iscsiRadio").get_group()
-    for button in group:
+    for button in reversed(group):
         if button is not None and button.get_property("sensitive"):
             button.set_active(True)
             button.grab_focus()
-- 
1.7.1.1


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