Mercurial > hg > openttd
changeset 7063:ec920a4e40bd draft
(svn r10328) -Codechange: Close the timetable window when closing the vehicle window.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Mon, 25 Jun 2007 17:29:03 +0000 |
parents | 1a0ddc74cd95 |
children | a1b4950870eb |
files | src/aircraft_gui.cpp src/roadveh_gui.cpp src/ship_gui.cpp src/train_gui.cpp |
diffstat | 4 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -358,6 +358,7 @@ 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: {
--- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -374,6 +374,7 @@ 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: {
--- a/src/ship_gui.cpp +++ b/src/ship_gui.cpp @@ -295,6 +295,7 @@ 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: {
--- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -282,6 +282,7 @@ 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: {