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
commite27de79990cf526ac40af7c7e00fd357ddabcaa4 (patch)
tree63b593a7cd180b0c7041b89ebbc905820ba48cba /src
parent013d7db19f976e1ef9002ceba53f5fa87fd915a0 (diff)
downloadopenttd-e27de79990cf526ac40af7c7e00fd357ddabcaa4.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