summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-01-17 22:28:08 +0000
committerbfox <bfox>2001-01-17 22:28:08 +0000
commit122fe33ca02bdab0f2f3ee5c8cb7ade133f3df86 (patch)
tree87d73682a9dad04c43fce858d8bee76069fe4090 /text.py
parent2bba6297aa46277b31f11ecf79613f950a7c5934 (diff)
downloadanaconda-122fe33ca02bdab0f2f3ee5c8cb7ade133f3df86.tar.gz
anaconda-122fe33ca02bdab0f2f3ee5c8cb7ade133f3df86.tar.xz
anaconda-122fe33ca02bdab0f2f3ee5c8cb7ade133f3df86.zip
Fixed bug going back and forth in language default screen.
Diffstat (limited to 'text.py')
-rw-r--r--text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/text.py b/text.py
index c2b1b9654..0c9a455df 100644
--- a/text.py
+++ b/text.py
@@ -186,11 +186,14 @@ class LanguageDefaultWindow:
descriptions.sort ()
current = todo.language.get ()
+ found = FALSE
for lang in langs:
if languages[lang] == current:
default = langs.index (lang)
+ found = TRUE
else:
- default = langs[0]
+ if found == FALSE:
+ default = langs[0]
height = min((screen.height - 16, len(descriptions)))