LCL: Don't trigger click event on TreeView's fold-arrow if another node is selected. Issue #37051.

git-svn-id: trunk@63147 -
This commit is contained in:
juha 2020-05-13 22:29:10 +00:00
parent c236e626e7
commit b4415f3aa4
2 changed files with 10 additions and 1 deletions

View File

@ -3518,7 +3518,10 @@ type
procedure Change(Node: TTreeNode); virtual;
procedure Collapse(Node: TTreeNode); virtual;
procedure CreateWnd; override;
procedure Click; override;
procedure DblClick; override;
//procedure TripleClick; override; - Are these needed?
//procedure QuadClick; override;
procedure Delete(Node: TTreeNode); virtual;
procedure DestroyWnd; override;
procedure DoCreateNodeClass(var NewNodeClass: TTreeNodeClass); virtual;

View File

@ -3315,10 +3315,16 @@ begin
inherited CreateWnd;
end;
procedure TCustomTreeView.Click;
begin
if FMouseDownNodeSelected then
inherited;
end;
procedure TCustomTreeView.DblClick;
begin
if FMouseDownNodeSelected then
inherited DblClick;
inherited;
end;
procedure TCustomTreeView.InitializeWnd;