misc_gui.c
changeset 598 200de7111fa9
parent 596 e876d7319634
child 606 0e507bb0f63a
--- a/misc_gui.c	Sat Dec 11 19:20:00 2004 +0000
+++ b/misc_gui.c	Sun Dec 12 13:46:10 2004 +0000
@@ -791,11 +791,11 @@
 				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;