summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-21 22:25:21 +0000
committeralberth <alberth@openttd.org>2009-07-21 22:25:21 +0000
commit8083d67780d6a85c558080ec99dd2d24ae755d0f (patch)
treeb1639f095175d1ff0444f5ae8197ded9e79000f7 /src/airport_gui.cpp
parent639a829f87d6c3363e0930987a0953c9851ac636 (diff)
downloadopenttd-8083d67780d6a85c558080ec99dd2d24ae755d0f.tar.xz
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index a8d657736..18162a785 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -126,7 +126,7 @@ struct BuildAirToolbarWindow : Window {
{
this->RaiseButtons();
- DeleteWindowById(WC_BUILD_STATION, 0);
+ DeleteWindowById(WC_BUILD_STATION, TRANSPORT_AIR);
DeleteWindowById(WC_SELECT_STATION, 0);
}
};
@@ -202,7 +202,7 @@ enum AirportPickerWidgets {
class AirportPickerWindow : public PickerWindowBase {
public:
- AirportPickerWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(desc, parent)
+ AirportPickerWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(desc, parent, TRANSPORT_AIR)
{
this->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_settings_client.gui.station_show_coverage);
this->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _settings_client.gui.station_show_coverage);