summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-05-27 16:26:10 +0000
committerplanetmaker <planetmaker@openttd.org>2011-05-27 16:26:10 +0000
commit8828acd722becaec023c38873f5136146cfc6a41 (patch)
tree8107f72ae0793aa4e6283f0eeaad0c4ce639c7b6 /src
parent00e65d1a4dc0cc380c1e8f1b0370c3f238dc1ccd (diff)
downloadopenttd-8828acd722becaec023c38873f5136146cfc6a41.tar.xz
(svn r22497) -Codechange: Simplify button handling in airport build GUI
Diffstat (limited to 'src')
-rw-r--r--src/airport_gui.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index d9008431c..a8460c1a9 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -533,18 +533,6 @@ public:
{
CheckRedrawStationCoverage(this);
}
-
- virtual void OnTimeout()
- {
- if (this->IsWidgetLowered(BAIRW_LAYOUT_DECREASE)) {
- this->ToggleWidgetLoweredState(BAIRW_LAYOUT_DECREASE);
- this->SetDirty();
- }
- if (this->IsWidgetLowered(BAIRW_LAYOUT_INCREASE)) {
- this->ToggleWidgetLoweredState(BAIRW_LAYOUT_INCREASE);
- this->SetDirty();
- }
- }
};
static const NWidgetPart _nested_build_airport_widgets[] = {
@@ -587,7 +575,7 @@ static const NWidgetPart _nested_build_airport_widgets[] = {
static const WindowDesc _build_airport_desc(
WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
- WDF_CONSTRUCTION,
+ WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
_nested_build_airport_widgets, lengthof(_nested_build_airport_widgets)
);