summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2019-01-24 16:40:43 +0000
committerMichael Lutz <michi@icosahedron.de>2019-02-21 00:35:56 +0100
commit19fa960d838d97269514ab4fc3a5f5214acdfb23 (patch)
tree6c0b1e57c0d4735f3332c4f462f651464b7041a2 /src/ai
parent21f009dc78f2e5c5e5ff80ed3719e9567ac71ec1 (diff)
downloadopenttd-19fa960d838d97269514ab4fc3a5f5214acdfb23.tar.xz
Fix #7091: Close dropdown menu windows after rebuilding AI/GS settings
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index dbdd77245..54a72e53b 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -585,6 +585,7 @@ struct AISettingsWindow : public Window {
virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
{
this->RebuildVisibleSettings();
+ HideDropDownMenu(this);
}
private: