(svn r22495) -Fix: The layout selectors of the airport build GUI did not latch properly

This commit is contained in:
planetmaker 2011-05-27 15:40:32 +00:00
parent 4ac6f2a994
commit 9a744793b0

View File

@ -533,6 +533,18 @@ public:
{ {
CheckRedrawStationCoverage(this); 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[] = { static const NWidgetPart _nested_build_airport_widgets[] = {