mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 16:29:32 +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
|
begin
|
||||||
Resu:=ShowAddPkgDependencyDlg(LazProject, Deps);
|
Resu:=ShowAddPkgDependencyDlg(LazProject, Deps);
|
||||||
try
|
try
|
||||||
if (Resu<>mrOK) or (Deps.Count=0) then exit;
|
if (Resu<>mrOK) or (Deps.Count=0) or (OnAddDependency=nil) then exit;
|
||||||
try
|
try
|
||||||
BeginUpdate;
|
BeginUpdate;
|
||||||
for i := 0 to Deps.Count-1 do
|
for i := 0 to Deps.Count-1 do
|
||||||
begin
|
OnAddDependency(Self, Deps[i]);
|
||||||
if Assigned(OnAddDependency) then
|
|
||||||
OnAddDependency(Self, Deps[i]);
|
|
||||||
end;
|
|
||||||
FNextSelectedPart:=Deps[Deps.Count-1];
|
FNextSelectedPart:=Deps[Deps.Count-1];
|
||||||
UpdateRequiredPackages;
|
UpdateRequiredPackages;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user