From 75f8a9db0adcb89a24f4624907298b87196ba26f Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 15 Aug 2009 20:59:49 +0000 Subject: (svn r17194) -Fix (r17175): Depot sell buttons did not raise again. --- src/depot_gui.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index f689107ee..e3cb1dafa 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -924,6 +924,18 @@ struct DepotWindow : Window { _cursor.vehchain = false; } + virtual void OnTimeout() + { + if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL)) { + this->RaiseWidget(DEPOT_WIDGET_SELL); + this->InvalidateWidget(DEPOT_WIDGET_SELL); + } + if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL_CHAIN)) { + this->RaiseWidget(DEPOT_WIDGET_SELL_CHAIN); + this->InvalidateWidget(DEPOT_WIDGET_SELL_CHAIN); + } + } + virtual void OnResize(Point delta) { this->vscroll.cap += delta.y / (int)this->resize.step_height; -- cgit v1.2.3-70-g09d2