diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index b8d7e321ad..0141584e09 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -558,6 +558,7 @@ struct TimetableWindow : Window { const Vehicle *v = this->vehicle; this->clicked_widget = widget; + this->DeleteChildWindows(WC_QUERY_STRING); switch (widget) { case WID_VT_ORDER_VIEW: // Order view button