Skip to content

Commit

Permalink
Reverted changes for #1146
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Aug 13, 2023
1 parent 85e45e0 commit b4cd92f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -22526,8 +22526,6 @@ procedure TBaseVirtualTree.SortTree(Column: TColumnIndex; Direction: TSortDirect
begin
if RootNode.TotalCount <= 2 then
Exit;//Nothing to do if there are one or zero nodes. RootNode.TotalCount is 1 if there are no nodes in the treee as the root node counts too here.
if not Assigned(OnCompareNodes) then
exit;// no sorting will take place without an event handler. Issue #1146

if not Assigned(FRoot.FirstChild) then
Exit; // Sorting should not initialize the root nodes
Expand Down

0 comments on commit b4cd92f

Please sign in to comment.