diff -r f8f94a1d3d4a -r b8c5ae66f9ff misc_gui.c --- 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;