diff options
author | Chris Lumens <clumens@redhat.com> | 2005-03-30 21:25:35 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-03-30 21:25:35 +0000 |
commit | ff8887d7b0444db5d68aaac9e97ddf3e80608106 (patch) | |
tree | 20a1122bd9af22a86dee052f1d1c02e044af23d9 /language.py | |
parent | a409f241c804957b65801247b737fb4f7dc7b293 (diff) | |
download | anaconda-ff8887d7b0444db5d68aaac9e97ddf3e80608106.tar.gz anaconda-ff8887d7b0444db5d68aaac9e97ddf3e80608106.tar.xz anaconda-ff8887d7b0444db5d68aaac9e97ddf3e80608106.zip |
Fix check for if we got a match or not in setDefault.
Diffstat (limited to 'language.py')
-rw-r--r-- | language.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/language.py b/language.py index f7c8e2913..8f9851154 100644 --- a/language.py +++ b/language.py @@ -189,20 +189,21 @@ class InstallTimeLanguage: return 'English (USA)' def setDefault(self, nick): - log ("starting setDefault") if not nick: self.default = None return # Try to find a match for the language nick we were given. + name = None for k in self.langInfoByName.keys(): row = self.langInfoByName[k] if nick in expandLangs(row[0]): name = k # It's possible we didn't find a match. - self.default = None - return + if name == None: + self.default = None + return self.default = name (lang, map, font) = self.langInfoByName[name] |