changeset 16823:3a844b1791a9 draft

(svn r21557) -Change: close the query windows when changing the language as often the strings are partly translated, which causes trouble in some cases
author rubidium <rubidium@openttd.org>
date Tue, 21 Dec 2010 10:06:21 +0000
parents 2aa42d3a1228
children 9d47c26bc1f1
files src/settings_gui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -430,6 +430,7 @@
 
 			case GOW_LANG_DROPDOWN: // Change interface language
 				ReadLanguagePack(&_languages[index]);
+				DeleteWindowByClass(WC_QUERY_STRING);
 				CheckForMissingGlyphsInLoadedLanguagePack();
 				UpdateAllVirtCoords();
 				ReInitAllWindows();