From 3024850bb10d82c2d18707d824d1b652ed1a74b8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 3 Jan 2009 23:32:59 +0000 Subject: (svn r14819) -Change: make details and order menu stickyable, like the timetable window. Also let the detail/order/timetable window close eachther, like the detail and order windows already did, when not stickied. --- src/timetable_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/timetable_gui.cpp') diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 4097788d8..6920d2a1e 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -8,6 +8,7 @@ #include "command_func.h" #include "gui.h" #include "window_gui.h" +#include "window_func.h" #include "textbuf_gui.h" #include "cargotype.h" #include "strings_func.h" @@ -366,5 +367,7 @@ static const WindowDesc _timetable_desc = { void ShowTimetableWindow(const Vehicle *v) { + DeleteWindowById(WC_VEHICLE_DETAILS, v->index, false); + DeleteWindowById(WC_VEHICLE_ORDERS, v->index, false); AllocateWindowDescFront(&_timetable_desc, v->index); } -- cgit v1.2.3-54-g00ecf