Close child query input window when clicking buttons in timetable GUI.

Fixes assertion failure if unrelated button is clicked between
opening and confirming query input window.
This commit is contained in:
Jonathan G Rennison
2017-05-07 13:59:16 +01:00
parent 31b2a39d02
commit 0cbb45ec63

View File

@@ -530,7 +530,8 @@ struct TimetableWindow : Window {
{ {
const Vehicle *v = this->vehicle; const Vehicle *v = this->vehicle;
this->clicked_widget = widget; this->clicked_widget = widget;
this->DeleteChildWindows(WC_QUERY_STRING);
switch (widget) { switch (widget) {
case WID_VT_ORDER_VIEW: // Order view button case WID_VT_ORDER_VIEW: // Order view button