mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
IDE: Tweaking of code adding a package dependency.
git-svn-id: trunk@53161 -
This commit is contained in:
parent
32d3fb866f
commit
874df07e16
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user