IDE: unit dependencies: reduced updating tree while generating nodes

git-svn-id: trunk@15137 -
This commit is contained in:
mattias 2008-05-14 15:00:00 +00:00
parent 4997713fae
commit 35793c2673

View File

@ -313,8 +313,13 @@ var
begin
UnitNode:=TUnitNode(Node.Data);
if UnitNode.HasChildren then begin
AllowExpansion:=true;
UnitNode.CreateGrandChildren;
UnitTreeView.BeginUpdate;
try
AllowExpansion:=true;
UnitNode.CreateGrandChildren;
finally
UnitTreeView.EndUpdate;
end;
end else begin
AllowExpansion:=false;
end;