FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 03-05-2009, 06:48 PM
Chris Lumens
 
Default Fix a couple problems on the "Change device" bootloader dialog.

(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

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

Thread Tools




All times are GMT. The time now is 04:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org