[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Fix a couple problems on the "Change device" bootloader dialog.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Fix a couple problems on the "Change device" bootloader dialog.
- Date: Thu, 5 Mar 2009 14:48:34 -0500
(1) Add the active boot partition to the drop down BIOS drive list.
(2) If there's no active device (not sure how this could happen, but we've
gotten bugs about it before) then don't try to do anything else with
that combo box.
---
iw/bootloader_main_gui.py | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/iw/bootloader_main_gui.py b/iw/bootloader_main_gui.py
index 452e880..a11e3b9 100644
--- a/iw/bootloader_main_gui.py
+++ b/iw/bootloader_main_gui.py
@@ -104,7 +104,7 @@ class MainBootloaderWindow(InstallWindow):
i = model.append(None)
model[i] = ("%s %8.0f MB %s" %(disk.name, size, m),
"%s" %(disk.name,))
- if disk == active:
+ if disk.name == active:
combo.set_active_iter(i)
return model
@@ -128,8 +128,7 @@ class MainBootloaderWindow(InstallWindow):
else:
w.set_active(False)
w.set_data("bootDevice", device)
-
-
+
for i in range(1, 5):
if len(self.driveorder) < i:
break
@@ -160,8 +159,13 @@ class MainBootloaderWindow(InstallWindow):
for i in range(1, 5):
if len(self.driveorder) < i:
break
+
combo = dxml.get_widget("bd%dCombo" %(i,))
- act = combo.get_model()[combo.get_active_iter()][1]
+ iter = combo.get_active_iter()
+ if not iter:
+ continue
+
+ act = combo.get_model()[iter][1]
if act not in neworder:
neworder.append(act)
for d in self.driveorder:
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]