summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-02-07 23:42:11 +0000
committerbfox <bfox>2001-02-07 23:42:11 +0000
commitf2fe3f8b2a86a5ddd84c4f004fbee9638de8fae8 (patch)
tree772c382607ebde2561cf5fb91c7f5acd12250028 /text.py
parenteade5b160f489cf06b2a7137941e0417924b4af6 (diff)
downloadanaconda-f2fe3f8b2a86a5ddd84c4f004fbee9638de8fae8.tar.gz
anaconda-f2fe3f8b2a86a5ddd84c4f004fbee9638de8fae8.tar.xz
anaconda-f2fe3f8b2a86a5ddd84c4f004fbee9638de8fae8.zip
Fix for bug #26539. Fix text mode traceback if all languages are unselected.
Diffstat (limited to 'text.py')
-rw-r--r--text.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/text.py b/text.py
index 667e7327f..7c1c56b81 100644
--- a/text.py
+++ b/text.py
@@ -165,14 +165,19 @@ class LanguageSupportWindow:
# --If they selected all langs, then set todo.language.setSupported to
# None. This installs all langs
- todo.language.setSupported (ct.getSelection())
-
- # we may need to reset the default language
- default = todo.language.getDefault()
- if default not in ct.getSelection():
- todo.language.setDefault(None)
- screen.popWindow()
- return INSTALL_OK
+ if ct.getSelection() == []:
+ ButtonChoiceWindow(screen, _("Invalid Choice"),
+ _("You select at least one language to install."),
+ buttons = [ _("OK") ], width = 40)
+
+ else:
+ # we may need to reset the default language
+ todo.language.setSupported (ct.getSelection())
+ default = todo.language.getDefault()
+ if default not in ct.getSelection():
+ todo.language.setDefault(None)
+ screen.popWindow()
+ return INSTALL_OK
class LanguageDefaultWindow: