changeset 15318:12894068fa23 draft

(svn r19959) -Fix (r19889): Disable drag destination highlighting when aborting a drag.
author alberth <alberth@openttd.org>
date Fri, 11 Jun 2010 15:37:00 +0000
parents bd76dc37e6ab
children 1d831c0b5eae
files src/order_gui.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -1279,6 +1279,12 @@
 		}
 		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()