summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-09 21:27:02 +0000
committerMike Fulbright <msf@redhat.com>2003-05-09 21:27:02 +0000
commit173388007dbd9cbb86472be2d19655ecb967a14d (patch)
tree67e78078cfce7127ef1ebb641bbf590817fbac65 /textw
parent44d1bce2c715cd8dd1f23a8ee5d498e43e65884e (diff)
downloadanaconda-173388007dbd9cbb86472be2d19655ecb967a14d.tar.gz
anaconda-173388007dbd9cbb86472be2d19655ecb967a14d.tar.xz
anaconda-173388007dbd9cbb86472be2d19655ecb967a14d.zip
fix for bug #82512
Diffstat (limited to 'textw')
-rw-r--r--textw/language_text.py19
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