diff options
author | planetmaker <planetmaker@openttd.org> | 2011-05-27 15:40:32 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-05-27 15:40:32 +0000 |
commit | 9a744793b0f1cfdab590f8736de90dcfa8e37040 (patch) | |
tree | 44ea2e3e321c4af47011655112e3de14ac2a0454 | |
parent | 4ac6f2a994a8a58b3fbcbabc5215bd40c980ec58 (diff) | |
download | openttd-9a744793b0f1cfdab590f8736de90dcfa8e37040.tar.xz |
(svn r22495) -Fix: The layout selectors of the airport build GUI did not latch properly
-rw-r--r-- | src/airport_gui.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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[] = { |