summaryrefslogtreecommitdiff
path: root/src/network/network_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
commitaad67b5736ce1f265eaf8aa0596c80c089f659ec (patch)
tree11498b2611a021129b26fdd96527d3ab137b426e /src/network/network_gui.cpp
parent7cd579e7efa1052ba2a1d47e9f635861191f1043 (diff)
downloadopenttd-aad67b5736ce1f265eaf8aa0596c80c089f659ec.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/network/network_gui.cpp')
-rw-r--r--src/network/network_gui.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 6a59e1a6c..f4e52db4a 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -925,7 +925,6 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
virtual void OnClick(Point pt, int widget)
{
- if (widget != NSSW_CONNTYPE_BTN && widget != NSSW_LANGUAGE_BTN) HideDropDownMenu(this);
this->field = widget;
switch (widget) {
case NSSW_CLOSE: // Close 'X'