summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
Diffstat (limited to 'iw')
-rw-r--r--iw/bootloader_advanced_gui.py4
-rw-r--r--iw/bootlocwidget.py7
2 files changed, 9 insertions, 2 deletions
diff --git a/iw/bootloader_advanced_gui.py b/iw/bootloader_advanced_gui.py
index 05b514f91..91a5f3ec8 100644
--- a/iw/bootloader_advanced_gui.py
+++ b/iw/bootloader_advanced_gui.py
@@ -77,11 +77,13 @@ class AdvancedBootloaderWindow(InstallWindow):
def bootloaderChanged(self, widget, *args):
if widget == self.grub_radio and self.grub_radio.get_active():
# grub is the boot loader
- self.blloc.getWidget().set_sensitive(gtk.TRUE)
+ self.blloc.getWidget().set_sensitive(gtk.TRUE)
+ self.blloc.setUsingGrub(1)
self.options_vbox.set_sensitive(gtk.TRUE)
elif widget == self.lilo_radio and self.lilo_radio.get_active():
# lilo is the boot loader
self.blloc.getWidget().set_sensitive(gtk.TRUE)
+ self.blloc.setUsingGrub(0)
self.options_vbox.set_sensitive(gtk.TRUE)
elif widget == self.none_radio and self.none_radio.get_active():
# using no boot loader
diff --git a/iw/bootlocwidget.py b/iw/bootlocwidget.py
index 166bd3e1a..77248efa6 100644
--- a/iw/bootlocwidget.py
+++ b/iw/bootlocwidget.py
@@ -31,6 +31,7 @@ class BootloaderLocationWidget:
self.parent = parent
self.intf = intf
self.driveOrder = bl.drivelist
+ self.usingGrub = self.bl.useGrub()
locationBox = gtk.VBox (gtk.FALSE, 2)
locationBox.set_border_width(5)
@@ -79,11 +80,12 @@ class BootloaderLocationWidget:
def editDriveOrder(self, *args):
# we only support this for grub
- if not self.bl.useGrub():
+ if not self.usingGrub:
self.intf.messageWindow(_("Unable to Change Drive Order for LILO"),
_("We do not support changing the "
"drive order for use with LILO."),
type="ok")
+ return
@@ -146,3 +148,6 @@ class BootloaderLocationWidget:
def getDriveOrder(self):
return self.driveOrder
+
+ def setUsingGrub(self, val):
+ self.usingGrub = val