summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-02-01 22:32:07 +0000
committerpeter1138 <peter1138@openttd.org>2009-02-01 22:32:07 +0000
commitbce50498fc078f39b73b70a841c6d2776f997643 (patch)
tree11498b2611a021129b26fdd96527d3ab137b426e /src/order_gui.cpp
parentbcb72d30d87223dbd6beccdc9f5046175da7b65f (diff)
downloadopenttd-bce50498fc078f39b73b70a841c6d2776f997643.tar.xz
(svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 43978edb2..b20d1c556 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -839,7 +839,6 @@ public:
virtual void OnClick(Point pt, int widget)
{
- if (this->widget[widget].type != WWT_DROPDOWN) HideDropDownMenu(this);
switch (widget) {
case ORDER_WIDGET_ORDER_LIST: {
ResetObjectToPlace();