# HG changeset patch # User frosch # Date 2009-11-15 20:37:13 # Node ID e0b44d5fcc8d42e285114ae830d31eea01591e71 # Parent 852713dd1dca92bc011fab856904dc288f8b47f6 (svn r18109) -Fix: Up-/down-buttons of CreateScenarioWindow were not raised again. diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -987,6 +987,17 @@ struct CreateScenarioWindow : public Win } } + virtual void OnTimeout() + { + static const int raise_widgets[] = {CSCEN_START_DATE_DOWN, CSCEN_START_DATE_UP, CSCEN_FLAT_LAND_HEIGHT_DOWN, CSCEN_FLAT_LAND_HEIGHT_UP, WIDGET_LIST_END}; + for (const int *widget = raise_widgets; *widget != WIDGET_LIST_END; widget++) { + if (this->IsWidgetLowered(*widget)) { + this->RaiseWidget(*widget); + this->SetWidgetDirty(*widget); + } + } + } + virtual void OnDropdownSelect(int widget, int index) { switch (widget) {