From 8cae4d1214ce8a9788d1c8713615ddb635693dd8 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 11 Jun 2006 14:56:21 +0000 Subject: (svn r5225) Some windows periodically check if their parent exists - if not they close themselves This is unnecessary, because their parents already close them when they get closed Therefore remove the code for the periodic checks --- train_gui.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'train_gui.c') diff --git a/train_gui.c b/train_gui.c index be6c147d9..0efc818c1 100644 --- a/train_gui.c +++ b/train_gui.c @@ -284,12 +284,6 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) } } break; - case WE_4: - if (w->window_number != 0 && !FindWindowById(WC_VEHICLE_DEPOT, w->window_number)) { - DeleteWindow(w); - } - break; - case WE_ON_EDIT_TEXT: { if (e->edittext.str[0] != '\0') { _cmd_text = e->edittext.str; @@ -1292,11 +1286,6 @@ do_change_service_int: } } break; - case WE_4: - if (FindWindowById(WC_VEHICLE_VIEW, w->window_number) == NULL) - DeleteWindow(w); - break; - case WE_ON_EDIT_TEXT: if (e->edittext.str[0] != '\0') { _cmd_text = e->edittext.str; -- cgit v1.2.3-54-g00ecf