misc_gui.c
changeset 1304 6460f4c8600e
parent 1299 39c06aba09aa
child 1309 4403a69da4f8
equal deleted inserted replaced
1303:14334a84dcbf 1304:6460f4c8600e
   894 	case WE_CLICK:
   894 	case WE_CLICK:
   895 		switch(e->click.widget) {
   895 		switch(e->click.widget) {
   896 		case 3: DeleteWindow(w); break;
   896 		case 3: DeleteWindow(w); break;
   897 		case 4:
   897 		case 4:
   898 press_ok:;
   898 press_ok:;
   899 			if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) && !_do_edit_on_text_even_when_no_change_to_edit_box) {
   899 			if (strcmp(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) == 0 &&
       
   900 					!_do_edit_on_text_even_when_no_change_to_edit_box) {
   900 				DeleteWindow(w);
   901 				DeleteWindow(w);
   901 			} else {
   902 			} else {
   902 				byte *buf = WP(w,querystr_d).buf;
   903 				byte *buf = WP(w,querystr_d).buf;
   903 				WindowClass wnd_class = WP(w,querystr_d).wnd_class;
   904 				WindowClass wnd_class = WP(w,querystr_d).wnd_class;
   904 				WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
   905 				WindowNumber wnd_num = WP(w,querystr_d).wnd_num;