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 | c331426ce0fa1d81917555dc605d882780d1a91e (patch) | |
tree | 64681c2e943582f39b31d9042b393d9d2bdcbacf | |
parent | 5130369301b709e1d326ee7e706e7fde7dad5200 (diff) | |
download | openttd-c331426ce0fa1d81917555dc605d882780d1a91e.tar.xz |
(svn r14787) -Fix: landscape toolbar getting closed when rail/road/water/airport toolbar gets closed with linked toolbars turned on.
-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); } /** |