summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-15 21:35:48 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-15 21:35:48 +0000
commit38be279d3a416ab991a83221464c10659b7feff7 (patch)
tree63b593a7cd180b0c7041b89ebbc905820ba48cba /src
parent62a7587586070bbb78ac09c72e10da76be897c11 (diff)
downloadopenttd-38be279d3a416ab991a83221464c10659b7feff7.tar.xz
(svn r12374) -Fix (r11892): Don't close a dropmenu when clicking on a dropdown widget
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 7894a3b85..8525c883c 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -499,7 +499,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
}
case WE_CLICK:
- HideDropDownMenu(w);
+ if (e->we.click.widget != GRP_WIDGET_SORT_BY_DROPDOWN && e->we.click.widget != GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN) HideDropDownMenu(w);
switch(e->we.click.widget) {
case GRP_WIDGET_SORT_BY_ORDER: // Flip sorting method ascending/descending