aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-04 02:11:56 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-04 02:11:56 +0000
commitc6a03d072684381bf66ecb0b6c06daedcbf6ac25 (patch)
treedf614e2eb78855647cca7d2876f821193730f1e9 /iw/profile_gui.py
parentiw/makeconf_gui.py: messageWindow is in anaconda.intf (diff)
downloadanaconda-c6a03d072684381bf66ecb0b6c06daedcbf6ac25.tar.gz
anaconda-c6a03d072684381bf66ecb0b6c06daedcbf6ac25.tar.bz2
anaconda-c6a03d072684381bf66ecb0b6c06daedcbf6ac25.zip
iw/profile_gui.py: validation
Diffstat (limited to 'iw/profile_gui.py')
-rw-r--r--iw/profile_gui.py3
1 files changed, 3 insertions, 0 deletions
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):