diff options
author | Eugene Sandulenko | 2006-05-30 01:41:49 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-30 01:41:49 +0000 |
commit | 5bbe44cd505dafb5a64df677fc0889248c523c13 (patch) | |
tree | 9973ce22e9ba75b77dc0277e56a739818af83b2d /gui/launcher.cpp | |
parent | ce33cfd93840bcac3142546c62bd7f31a884f64c (diff) | |
download | scummvm-rg350-5bbe44cd505dafb5a64df677fc0889248c523c13.tar.gz scummvm-rg350-5bbe44cd505dafb5a64df677fc0889248c523c13.tar.bz2 scummvm-rg350-5bbe44cd505dafb5a64df677fc0889248c523c13.zip |
Fix bug #1496582 "GUI: Default graphics mode not committing".
svn-id: r22763
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 923d3c9bee..a03e32d903 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -291,10 +291,13 @@ void EditGameDialog::open() { const Common::LanguageDescription *l = Common::g_languages; const Common::Language lang = Common::parseLanguage(ConfMan.get("language", _domain)); + sel = 0; - for (i = 0; l->code; ++l, ++i) { - if (lang == l->id) - sel = i + 2; + if (ConfMan.hasKey("language", _domain)) { + for (i = 0; l->code; ++l, ++i) { + if (lang == l->id) + sel = i + 2; + } } _langPopUp->setSelected(sel); |