summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 7eb8c6dce..1941a8602 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -76,10 +76,11 @@ struct BuildAirToolbarWindow : Window {
this->last_user_action = WIDGET_LIST_END;
}
- ~BuildAirToolbarWindow()
+ void Close() override
{
if (this->IsWidgetLowered(WID_AT_AIRPORT)) SetViewportCatchmentStation(nullptr, true);
if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false);
+ this->Window::Close();
}
/**
@@ -276,9 +277,10 @@ public:
if (selectFirstAirport) this->SelectFirstAvailableAirport(true);
}
- virtual ~BuildAirportWindow()
+ void Close() override
{
DeleteWindowById(WC_SELECT_STATION, 0);
+ this->PickerWindowBase::Close();
}
void SetStringParameters(int widget) const override