changeset 17715:71a94913b160 draft

(svn r22495) -Fix: The layout selectors of the airport build GUI did not latch properly
author planetmaker <planetmaker@openttd.org>
date Fri, 27 May 2011 15:40:32 +0000
parents f1daba3671d2
children 5b5d9580d771
files src/airport_gui.cpp
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -533,6 +533,18 @@
 	{
 		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[] = {