diff options
author | alberth <alberth@openttd.org> | 2010-06-11 15:37:00 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-06-11 15:37:00 +0000 |
commit | f053a82594b96790799c89cdbe65d55df7bacdd1 (patch) | |
tree | f3d907dfe622af9489e8ee85ec68a492c39e4289 | |
parent | e71fd4bb57fe02c28372eb087985cd1d535de2da (diff) | |
download | openttd-f053a82594b96790799c89cdbe65d55df7bacdd1.tar.xz |
(svn r19959) -Fix (r19889): Disable drag destination highlighting when aborting a drag.
-rw-r--r-- | src/order_gui.cpp | 6 |
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() |