mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Crash when selecting files with right mouse button and moving mouse on empty space.
This commit is contained in:
parent
3b6751effb
commit
55c7579a3e
1 changed files with 7 additions and 0 deletions
|
|
@ -763,6 +763,13 @@ begin
|
|||
gMouseSelectionEnabled and (gMouseSelectionButton = 1) then
|
||||
begin
|
||||
Node := dgPanel.GetNodeAt(X, Y);
|
||||
if not Assigned(Node) then
|
||||
begin
|
||||
if Y < dgPanel.GetHeaderHeight then
|
||||
Node := dgPanel.GetFirstNoInit
|
||||
else
|
||||
Node := dgPanel.GetLastNoInit;
|
||||
end;
|
||||
if dgPanel.FocusedNode <> Node then // if new row index
|
||||
begin
|
||||
tmContextMenu.Enabled:= False; // stop context menu timer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue