Minor: Just process initialized nodes in DeInitializeVTNodes(). Can produce AVs otherwise on startup, and makes superfluous loops on non initialized ones.

This commit is contained in:
Ansgar Becker
2010-03-03 23:49:23 +00:00
parent b8fd48a6cb
commit 5e4238fa7f

View File

@@ -2626,10 +2626,10 @@ var
begin
// Forces a VirtualTree to (re-)initialize its nodes.
// I wonder why this is not implemented in VirtualTree.
Node := Sender.GetFirst;
Node := Sender.GetFirstInitialized;
while Assigned(Node) do begin
Node.States := Node.States - [vsInitialized];
Node := Sender.GetNext(Node);
Node := Sender.GetNextInitialized(Node);
end;
end;