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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user