IDE: find unit dlg: do not show quickfix for adding package to itself

git-svn-id: trunk@47660 -
This commit is contained in:
mattias 2015-02-09 17:08:55 +00:00
parent 86b3c18810
commit 634d038ea2

View File

@ -411,8 +411,9 @@ begin
end else if MainOwner is TLazPackage then begin
APackage:=TLazPackage(MainOwner);
if CompareText(APackage.Name,PackageName)=0 then
Result:=true;
Result:=PackageGraph.FindDependencyRecursively(
Result:=true
else
Result:=PackageGraph.FindDependencyRecursively(
APackage.FirstRequiredDependency,PackageName)<>nil;
end;
end;