mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
Fix: Rail waypoint selection window not closed
When rail toolbar or rail waypoint build windows closed
This commit is contained in:
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 (this->IsWidgetLowered(WID_RAT_BUILD_STATION)) SetViewportCatchmentStation(nullptr, true);
|
||||||
if (_settings_client.gui.link_terraform_toolbar) CloseWindowById(WC_SCEN_LAND_GEN, 0, false);
|
if (_settings_client.gui.link_terraform_toolbar) CloseWindowById(WC_SCEN_LAND_GEN, 0, false);
|
||||||
|
CloseWindowById(WC_SELECT_STATION, 0);
|
||||||
this->Window::Close();
|
this->Window::Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2022,6 +2023,12 @@ struct BuildRailWaypointWindow : PickerWindowBase {
|
|||||||
this->BuildPickerList();
|
this->BuildPickerList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Close() override
|
||||||
|
{
|
||||||
|
CloseWindowById(WC_SELECT_STATION, 0);
|
||||||
|
this->PickerWindowBase::Close();
|
||||||
|
}
|
||||||
|
|
||||||
bool FilterByText(const StationSpec *statspec)
|
bool FilterByText(const StationSpec *statspec)
|
||||||
{
|
{
|
||||||
if (this->string_filter.IsEmpty()) return true;
|
if (this->string_filter.IsEmpty()) return true;
|
||||||
|
Reference in New Issue
Block a user