aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iw/makeconf_gui.py')
-rw-r--r--iw/makeconf_gui.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/iw/makeconf_gui.py b/iw/makeconf_gui.py
index 3eb81eb..50a0d69 100644
--- a/iw/makeconf_gui.py
+++ b/iw/makeconf_gui.py
@@ -35,7 +35,17 @@ import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
class MakeconfWindow(InstallWindow):
+
+ def err(title, message):
+ self.intf.messageWindow(title, message, custom_icon="error")
+ raise gui.StayOnScreen
+
def getNext(self):
+ if self.march.get_active_text() == "":
+ self.err(_("Select -march"), _("You need to choose the -march setting!"))
+ if self.opt.get_active_text() == "";
+ self.err(_("Select -O"), _("You need to choose the -O setting!"))
+
self.anaconda.makeconf_march = self.march.get_active_text()
self.anaconda.makeconf_opt = self.opt.get_active_text()
self.anaconda.makeconf_pipe = self.pipe.get_property("active")