summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-15 19:50:06 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-15 19:50:06 +0000
commit058724b7682ab57234eb0c296de5e7ed88c509e0 (patch)
treeab4dd2c627f381cea9a54ef15ded332c6b993526 /src/network
parent89e9bbfa98e5dd01a7624e2937a60a2999c3c289 (diff)
downloadopenttd-058724b7682ab57234eb0c296de5e7ed88c509e0.tar.xz
(svn r12370) -Fix [FS#1853]: Close language drop down when parent window is clicked/closed.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 7ee613cd1..3e3d5b54b 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -728,6 +728,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
} break;
case WE_CLICK:
+ if (e->we.click.widget != NSSW_CONNTYPE_BTN && e->we.click.widget != NSSW_LANGUAGE_BTN) HideDropDownMenu(w);
nd->field = e->we.click.widget;
switch (e->we.click.widget) {
case NSSW_CLOSE: // Close 'X'