summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-08-15 20:59:49 +0000
committeralberth <alberth@openttd.org>2009-08-15 20:59:49 +0000
commit75f8a9db0adcb89a24f4624907298b87196ba26f (patch)
treed660df05d36e545344c687a7d000a05e156f08ce /src/depot_gui.cpp
parentdc4deab88bb4461b854cf5613d38a2d11a2c027f (diff)
downloadopenttd-75f8a9db0adcb89a24f4624907298b87196ba26f.tar.xz
(svn r17194) -Fix (r17175): Depot sell buttons did not raise again.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp12
1 files changed, 12 insertions, 0 deletions
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;