Skip to content

Commit

Permalink
if only one node is selected, make sure the focused node changes with…
Browse files Browse the repository at this point in the history
… the selected node

# Conflicts:
#	Source/VirtualTrees.pas
  • Loading branch information
Joachim Marder authored and ValtsS committed Jan 24, 2019
1 parent 99a7071 commit 31a94c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/VirtualTrees.pas
Original file line number Diff line number Diff line change
Expand Up @@ -19371,6 +19371,8 @@ procedure TBaseVirtualTree.AddToSelection(Node: PVirtualNode);
Changed := InternalAddToSelection(FSingletonNodeArray, 1, False);
if Changed then
begin
if (SelectedCount = 1) then
FocusedNode := Node; // if only one node is selected, make sure the focused node changes with the selected node
InvalidateNode(Node);
Change(Node);
end;
Expand Down

0 comments on commit 31a94c5

Please sign in to comment.