mirror of https://github.com/OpenTTD/OpenTTD
(svn r19959) -Fix (r19889): Disable drag destination highlighting when aborting a drag.
parent
e71fd4bb57
commit
f053a82594
|
@ -1279,6 +1279,12 @@ public:
|
||||||
}
|
}
|
||||||
this->RaiseWidget(ORDER_WIDGET_GOTO);
|
this->RaiseWidget(ORDER_WIDGET_GOTO);
|
||||||
this->SetWidgetDirty(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()
|
virtual void OnMouseLoop()
|
||||||
|
|
Loading…
Reference in New Issue