diff options
author | bfox <bfox> | 2001-02-07 23:42:11 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-02-07 23:42:11 +0000 |
commit | f2fe3f8b2a86a5ddd84c4f004fbee9638de8fae8 (patch) | |
tree | 772c382607ebde2561cf5fb91c7f5acd12250028 /text.py | |
parent | eade5b160f489cf06b2a7137941e0417924b4af6 (diff) | |
download | anaconda-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.py | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -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: |