summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-21 10:06:21 +0000
committerrubidium <rubidium@openttd.org>2010-12-21 10:06:21 +0000
commitc87404063618293e50b8d7e0f1c85965c0fc8986 (patch)
tree84bf601170cd75d4775106d4c62a904601f3bb42 /src
parentee87c91e0577346ac0a9f68ebe707509c59e0055 (diff)
downloadopenttd-c87404063618293e50b8d7e0f1c85965c0fc8986.tar.xz
(svn r21557) -Change: close the query windows when changing the language as often the strings are partly translated, which causes trouble in some cases
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 75be0a9a7..69e3d7372 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -430,6 +430,7 @@ struct GameOptionsWindow : Window {
case GOW_LANG_DROPDOWN: // Change interface language
ReadLanguagePack(&_languages[index]);
+ DeleteWindowByClass(WC_QUERY_STRING);
CheckForMissingGlyphsInLoadedLanguagePack();
UpdateAllVirtCoords();
ReInitAllWindows();