mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user