Fix crash on user manager, with recently updated VirtualTrees code, in .ReinitNode() while tree is yet invisible

This commit is contained in:
Ansgar Becker
2023-10-16 20:59:06 +02:00
parent da4a327eee
commit afa387ab87

View File

@@ -764,7 +764,7 @@ begin
treePrivs.FocusedNode := nil;
treePrivs.Clear;
treePrivs.RootNodeCount := FPrivObjects.Count;
treePrivs.ReinitNode(nil, True);
treePrivs.InvalidateChildren(nil, True);
treePrivs.Invalidate;
// Enable input boxes