(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
1 changed files with 12 additions and 0 deletions

View File

@ -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[] = {