diff options
author | rubidium <rubidium@openttd.org> | 2009-01-02 21:01:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-02 21:01:27 +0000 |
commit | 35f76ce26bb58ca1fba0393643b887195e7d1404 (patch) | |
tree | 64681c2e943582f39b31d9042b393d9d2bdcbacf /src | |
parent | 5b3a2ed2abb6bb6c29ab91c0a733ce9d970b8a3e (diff) | |
download | openttd-35f76ce26bb58ca1fba0393643b887195e7d1404.tar.xz |
(svn r14787) -Fix: landscape toolbar getting closed when rail/road/water/airport toolbar gets closed with linked toolbars turned on.
Diffstat (limited to 'src')
-rw-r--r-- | src/airport_gui.cpp | 2 | ||||
-rw-r--r-- | src/dock_gui.cpp | 2 | ||||
-rw-r--r-- | src/rail_gui.cpp | 2 | ||||
-rw-r--r-- | src/road_gui.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index e6c0a2e69..39e600402 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -76,7 +76,7 @@ struct BuildAirToolbarWindow : Window { ~BuildAirToolbarWindow() { - if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0); + if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false); } virtual void OnPaint() diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index a9fc90709..943568af6 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -169,7 +169,7 @@ struct BuildDocksToolbarWindow : Window { ~BuildDocksToolbarWindow() { - if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0); + if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false); } virtual void OnPaint() diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index ac0416845..713a0ab93 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -626,7 +626,7 @@ struct BuildRailToolbarWindow : Window { ~BuildRailToolbarWindow() { - if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0); + if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false); } void UpdateRemoveWidgetStatus(int clicked_widget) diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 254e5d03d..938adc10f 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -415,7 +415,7 @@ struct BuildRoadToolbarWindow : Window { ~BuildRoadToolbarWindow() { - if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0); + if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false); } /** |