mirror of https://github.com/OpenTTD/OpenTTD
Fix: Rail waypoint selection window not closed
When rail toolbar or rail waypoint build windows closedpull/10922/head
parent
7969907116
commit
a75a90b3af
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -2024,6 +2025,12 @@ struct BuildRailWaypointWindow : PickerWindowBase {
|
|||
matrix->SetClicked(_cur_waypoint_type);
|
||||
}
|
||||
|
||||
void Close() override
|
||||
{
|
||||
CloseWindowById(WC_SELECT_STATION, 0);
|
||||
this->PickerWindowBase::Close();
|
||||
}
|
||||
|
||||
void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override
|
||||
{
|
||||
switch (widget) {
|
||||
|
|
Loading…
Reference in New Issue