summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-06-11 15:37:00 +0000
committeralberth <alberth@openttd.org>2010-06-11 15:37:00 +0000
commitf053a82594b96790799c89cdbe65d55df7bacdd1 (patch)
treef3d907dfe622af9489e8ee85ec68a492c39e4289 /src
parente71fd4bb57fe02c28372eb087985cd1d535de2da (diff)
downloadopenttd-f053a82594b96790799c89cdbe65d55df7bacdd1.tar.xz
(svn r19959) -Fix (r19889): Disable drag destination highlighting when aborting a drag.
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 160f7469b..ffa009257 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -1279,6 +1279,12 @@ public:
}
this->RaiseWidget(ORDER_WIDGET_GOTO);
this->SetWidgetDirty(ORDER_WIDGET_GOTO);
+
+ /* Remove drag highlighting if it exists. */
+ if (this->order_over != INVALID_ORDER) {
+ this->order_over = INVALID_ORDER;
+ this->SetWidgetDirty(ORDER_WIDGET_ORDER_LIST);
+ }
}
virtual void OnMouseLoop()