From 8828acd722becaec023c38873f5136146cfc6a41 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Fri, 27 May 2011 16:26:10 +0000 Subject: [PATCH] (svn r22497) -Codechange: Simplify button handling in airport build GUI --- src/airport_gui.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index d9008431c3..a8460c1a91 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) );