summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-12 13:46:10 +0000
committertruelight <truelight@openttd.org>2004-12-12 13:46:10 +0000
commite027fa76b1a9b5ff48e645f640dac323fcdeff2c (patch)
tree4cd6dd0a1d8dfaa43f0188eed4d47202bf8a639d /misc_gui.c
parent920a93071be4c8a92c99c85679408371fc8feae5 (diff)
downloadopenttd-e027fa76b1a9b5ff48e645f640dac323fcdeff2c.tar.xz
(svn r1022) -Fix: [Network] [ 1083690 ] The password dialog made the network
disconnect without cleaning up.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index d23862434..824c53a6f 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -791,11 +791,11 @@ press_ok:;
WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
Window *parent;
- DeleteWindow(w);
-
// Mask the edit-box as closed, so we don't send out a CANCEL
closed = true;
+ DeleteWindow(w);
+
parent = FindWindowById(wnd_class, wnd_num);
if (parent != NULL) {
WindowEvent e;