(svn r582) -Fix: [ 1034318 ] place sign and blue message box
authortron
Sun, 14 Nov 2004 09:31:39 +0000
changeset 390 672930cad487
parent 389 2d394eeba5e5
child 391 573193308396
(svn r582) -Fix: [ 1034318 ] place sign and blue message box
A name change wasn't possible while an always-on-top window (like news) has been visible
misc_gui.c
--- a/misc_gui.c	Sun Nov 14 09:07:15 2004 +0000
+++ b/misc_gui.c	Sun Nov 14 09:31:39 2004 +0000
@@ -802,9 +802,13 @@
 			if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN)) {
 				DeleteWindow(w);
 			} else {
-				Window *parent = FindWindowById(WP(w,querystr_d).wnd_class, WP(w,querystr_d).wnd_num);
 				byte *buf = WP(w,querystr_d).buf;
+				WindowClass wnd_class = WP(w,querystr_d).wnd_class;
+				WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
+				Window *parent;
+
 				DeleteWindow(w);
+				parent = FindWindowById(wnd_class, wnd_num);
 				if (parent != NULL) {
 					WindowEvent e;
 					e.event = WE_ON_EDIT_TEXT;