IDE: Tweaking of code adding a package dependency.

git-svn-id: trunk@53161 -
This commit is contained in:
juha 2016-10-19 13:51:09 +00:00
parent 32d3fb866f
commit 874df07e16

View File

@ -507,14 +507,11 @@ var
begin
Resu:=ShowAddPkgDependencyDlg(LazProject, Deps);
try
if (Resu<>mrOK) or (Deps.Count=0) then exit;
if (Resu<>mrOK) or (Deps.Count=0) or (OnAddDependency=nil) then exit;
try
BeginUpdate;
for i := 0 to Deps.Count-1 do
begin
if Assigned(OnAddDependency) then
OnAddDependency(Self, Deps[i]);
end;
OnAddDependency(Self, Deps[i]);
FNextSelectedPart:=Deps[Deps.Count-1];
UpdateRequiredPackages;
finally