fix #240 - Dependencies of a libman entry could be removed

This commit is contained in:
Basile Burg 2018-02-11 02:21:44 +01:00
parent 9f982830d8
commit d6732c15e4
1 changed files with 6 additions and 3 deletions

View File

@ -590,10 +590,13 @@ begin
for j:= itm.dependencies.Count-1 downto 0 do
begin
dep := libraryByAlias[itm.dependencies[j]];
if dep.isNotNil and not sel.contains(dep) then
sel.insert(dep)
//auto update: item removed, detect on usage that it has disapeared
if dep.isNotNil then
begin
if not sel.contains(dep) then
sel.insert(dep)
end
else
//auto update: item removed, detect on usage that it has disapeared
itm.dependencies.Delete(j);
end;
end;