From 9a744793b0f1cfdab590f8736de90dcfa8e37040 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Fri, 27 May 2011 15:40:32 +0000 Subject: (svn r22495) -Fix: The layout selectors of the airport build GUI did not latch properly --- src/airport_gui.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 08d938f91..d9008431c 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -533,6 +533,18 @@ 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[] = { -- cgit v1.2.3-54-g00ecf