diff options
author | Mike Fulbright <msf@redhat.com> | 2003-05-09 21:27:02 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-05-09 21:27:02 +0000 |
commit | 173388007dbd9cbb86472be2d19655ecb967a14d (patch) | |
tree | 67e78078cfce7127ef1ebb641bbf590817fbac65 /textw | |
parent | 44d1bce2c715cd8dd1f23a8ee5d498e43e65884e (diff) | |
download | anaconda-173388007dbd9cbb86472be2d19655ecb967a14d.tar.gz anaconda-173388007dbd9cbb86472be2d19655ecb967a14d.tar.xz anaconda-173388007dbd9cbb86472be2d19655ecb967a14d.zip |
fix for bug #82512
Diffstat (limited to 'textw')
-rw-r--r-- | textw/language_text.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/textw/language_text.py b/textw/language_text.py index a929cac99..f113f2d7c 100644 --- a/textw/language_text.py +++ b/textw/language_text.py @@ -146,11 +146,26 @@ class LanguageSupportWindow: buttons = [ TEXT_OK_BUTTON ], width = 40) else: - # we may need to reset the default language + # set selected langs once language.setSupported (ct.getSelection()) + + # we may need to reset the default language default = language.getDefault() if default not in ct.getSelection(): - language.setDefault(None) + sellangs = language.getSupported() + + if len(sellangs) > 0: + language.setDefault(sellangs[0]) + else: + language.setDefault(None) + + else: + language.setDefault(default) + + # now set new selected langs again in case old default + # lang was left in the list before we switched the default + language.setSupported (ct.getSelection()) + screen.popWindow() return INSTALL_OK |