Fix: Rail waypoint selection window not closed

When rail toolbar or rail waypoint build windows closed
pull/564/head
Jonathan G Rennison 1 year ago committed by rubidium42
parent 584faaf064
commit ba11467c02

@ -423,6 +423,7 @@ struct BuildRailToolbarWindow : Window {
{
if (this->IsWidgetLowered(WID_RAT_BUILD_STATION)) SetViewportCatchmentStation(nullptr, true);
if (_settings_client.gui.link_terraform_toolbar) CloseWindowById(WC_SCEN_LAND_GEN, 0, false);
CloseWindowById(WC_SELECT_STATION, 0);
this->Window::Close();
}
@ -2022,6 +2023,12 @@ struct BuildRailWaypointWindow : PickerWindowBase {
this->BuildPickerList();
}
void Close() override
{
CloseWindowById(WC_SELECT_STATION, 0);
this->PickerWindowBase::Close();
}
bool FilterByText(const StationSpec *statspec)
{
if (this->string_filter.IsEmpty()) return true;

Loading…
Cancel
Save