summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-02-01 16:35:25 +0100
committerglx22 <glx22@users.noreply.github.com>2019-02-01 16:46:45 +0100
commit8418e27403d587c393fb0cdd140d60198e444683 (patch)
tree99068939cc787a3e3512d9770348ac43267950b9
parent0355f887d99974d21d678f1b7a12a343dc9ab04a (diff)
downloadopenttd-8418e27403d587c393fb0cdd140d60198e444683.tar.xz
Fix: close Textfile windows when closing Option window
-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 e94f96bc4..2faf2b150 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -182,6 +182,7 @@ struct GameOptionsWindow : Window {
~GameOptionsWindow()
{
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
+ DeleteWindowByClass(WC_TEXTFILE);
if (this->reload) _switch_mode = SM_MENU;
}