From c1ef54698c9310e4eac7426468e78c56e955cef0 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 4 May 2010 17:34:33 +0200 Subject: Revert commit 27a4c7df871744454d1ca8979a576f9f45c67189 We want to have a sane default for the UTC checkbox so we need to fixup hasWindows() rather then removing it. --- iw/timezone_gui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'iw/timezone_gui.py') diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 1a821b7f4..c5ecd889d 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -30,6 +30,7 @@ import sys from timezone_map_gui import TimezoneMap, Enum from iw_gui import * from booty.bootloaderInfo import dosFilesystems +from bootloader import hasWindows from constants import * import gettext @@ -103,6 +104,9 @@ class TimezoneWindow(InstallWindow): self.tz.setCurrent(self.zonetab.findEntryByTZ(self.default)) self.utcCheckbox.set_active(asUTC) + if not anaconda.ksdata: + self.utcCheckbox.set_active(not hasWindows(anaconda.bootloader)) + self.notebook.remove(self.vbox) return self.vbox -- cgit