mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 00:58:04 +02:00
VirtualTreeView: Cancel drag when context menu opens
On non-Windows widgetsets, a drag operation is started when right-clicking on an item in a tree that has a popup menu and right-click selection enabled.
This commit is contained in:
parent
df31c25382
commit
fe14d907f8
@ -16658,6 +16658,7 @@ var
|
||||
begin
|
||||
{$ifdef DEBUG_VTV}Logger.EnterMethod([lcMessages],'WMContextMenu');{$endif}
|
||||
DoStateChange([], [tsClearPending, tsEditPending, tsOLEDragPending, tsVCLDragPending]);
|
||||
CancelDrag;
|
||||
{$ifdef ContextMenuBeforeMouseUp}
|
||||
if Assigned(PopupMenu) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user