From c6a03d072684381bf66ecb0b6c06daedcbf6ac25 Mon Sep 17 00:00:00 2001 From: wiktor w brodlo Date: Thu, 4 Aug 2011 02:11:56 +0000 Subject: iw/profile_gui.py: validation --- iw/profile_gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iw/profile_gui.py b/iw/profile_gui.py index 8b289f8..4081e2e 100644 --- a/iw/profile_gui.py +++ b/iw/profile_gui.py @@ -41,6 +41,9 @@ class ProfileWindow(InstallWindow): self.anaconda.profile = button.get_property("label") # We need this for the USE flags subprocess.call(["eselect", "profile", "set", self.anaconda.profile]) + if self.anaconda.profile == None: + self.anaconda.intf.messageWindow(_("Select profile"), _("You must select a profile!")) + raise gui.StayOnScreen return None def getScreen(self, anaconda): -- cgit v1.2.3-65-gdbad