summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-25 17:29:03 +0000
committermaedhros <maedhros@openttd.org>2007-06-25 17:29:03 +0000
commit992d64b0fbd38bac622840788ccd3f756204beba (patch)
tree84320b6c5657e9d93c16d789c54318245af90331
parent9216eabb547b19c21e4c9962165da36507fe0481 (diff)
downloadopenttd-992d64b0fbd38bac622840788ccd3f756204beba.tar.xz
(svn r10328) -Codechange: Close the timetable window when closing the vehicle window.
-rw-r--r--src/aircraft_gui.cpp1
-rw-r--r--src/roadveh_gui.cpp1
-rw-r--r--src/ship_gui.cpp1
-rw-r--r--src/train_gui.cpp1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp
index 7890a8fd4..cea5097f0 100644
--- a/src/aircraft_gui.cpp
+++ b/src/aircraft_gui.cpp
@@ -358,6 +358,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e)
DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
+ DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
break;
case WE_MOUSELOOP: {
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 10fd3a18d..a746cb413 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -374,6 +374,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e)
DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
+ DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
break;
case WE_MOUSELOOP: {
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp
index e67111658..ceb13defb 100644
--- a/src/ship_gui.cpp
+++ b/src/ship_gui.cpp
@@ -295,6 +295,7 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
+ DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
break;
case WE_MOUSELOOP: {
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 4d6c81bad..161a997b7 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -282,6 +282,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
+ DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
break;
case WE_MOUSELOOP: {