misc_gui.c
changeset 598 b8c5ae66f9ff
parent 596 a787fc8fba4a
child 606 da90c837064c
equal deleted inserted replaced
597:f8f94a1d3d4a 598:b8c5ae66f9ff
   789 				byte *buf = WP(w,querystr_d).buf;
   789 				byte *buf = WP(w,querystr_d).buf;
   790 				WindowClass wnd_class = WP(w,querystr_d).wnd_class;
   790 				WindowClass wnd_class = WP(w,querystr_d).wnd_class;
   791 				WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
   791 				WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
   792 				Window *parent;
   792 				Window *parent;
   793 
   793 
   794 				DeleteWindow(w);
       
   795 
       
   796 				// Mask the edit-box as closed, so we don't send out a CANCEL
   794 				// Mask the edit-box as closed, so we don't send out a CANCEL
   797 				closed = true;
   795 				closed = true;
       
   796 
       
   797 				DeleteWindow(w);
   798 
   798 
   799 				parent = FindWindowById(wnd_class, wnd_num);
   799 				parent = FindWindowById(wnd_class, wnd_num);
   800 				if (parent != NULL) {
   800 				if (parent != NULL) {
   801 					WindowEvent e;
   801 					WindowEvent e;
   802 					e.event = WE_ON_EDIT_TEXT;
   802 					e.event = WE_ON_EDIT_TEXT;