mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 10:12:32 +02:00
IDE: fix crash when deleting a unit from project.
git-svn-id: trunk@30064 -
This commit is contained in:
parent
f6d82e6429
commit
9c9664129f
@ -981,12 +981,15 @@ begin
|
||||
ANode:=ItemsTreeView.Items.GetFirstNode
|
||||
else
|
||||
ANode:=ANode.GetFirstChild;
|
||||
while ANode.Text<>CurText do ANode:=ANode.GetNextSibling;
|
||||
while (ANode<>nil) and (ANode.Text<>CurText) do
|
||||
ANode:=ANode.GetNextSibling;
|
||||
if ANode=nil then break;
|
||||
ASelection.Delete(0);
|
||||
end;
|
||||
if ANode<>nil then ItemsTreeView.Selected:=ANode;
|
||||
if FreeList then ASelection.Free;
|
||||
if ANode<>nil then
|
||||
ItemsTreeView.Selected:=ANode;
|
||||
if FreeList then
|
||||
ASelection.Free;
|
||||
end;
|
||||
|
||||
constructor TProjectInspectorForm.Create(TheOwner: TComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user