summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-09-21 16:07:24 +0000
committerJeremy Katz <katzj@redhat.com>2007-09-21 16:07:24 +0000
commitab73348cd89fdf54270d6fdf6bbe4fde2756874c (patch)
treeb55f7a550a019a91dc65c9127f644203e655f9f1 /textw
parent53329e3fd25399087de236068d52bb029f4c408c (diff)
downloadanaconda-ab73348cd89fdf54270d6fdf6bbe4fde2756874c.tar.gz
anaconda-ab73348cd89fdf54270d6fdf6bbe4fde2756874c.tar.xz
anaconda-ab73348cd89fdf54270d6fdf6bbe4fde2756874c.zip
2007-09-21 Jeremy Katz <katzj@redhat.com>
* textw/keyboard_text.py (KeyboardWindow.__call__): Be more tolerant of bad keyboard being specified * lang-table: Fix traceback for Romanian (#292091)
Diffstat (limited to 'textw')
-rw-r--r--textw/keyboard_text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/textw/keyboard_text.py b/textw/keyboard_text.py
index 0a5bdd4d1..41e8ccf5b 100644
--- a/textw/keyboard_text.py
+++ b/textw/keyboard_text.py
@@ -33,6 +33,9 @@ class KeyboardWindow:
else:
default = anaconda.id.instLanguage.getDefaultKeyboard()
+ if default not in keyboards:
+ default = 'us'
+
(button, choice) = \
ListboxChoiceWindow(screen, _("Keyboard Selection"),
_("Which model keyboard is attached to this computer?"), keyboards,
@@ -43,7 +46,7 @@ class KeyboardWindow:
return INSTALL_BACK
anaconda.id.keyboard.set (keyboards[choice])
- anaconda.id.keyboard.beenset = 1
+ anaconda.id.keyboard.beenset = 1
anaconda.id.keyboard.activate()