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 for j:= itm.dependencies.Count-1 downto 0 do
begin begin
dep := libraryByAlias[itm.dependencies[j]]; dep := libraryByAlias[itm.dependencies[j]];
if dep.isNotNil and not sel.contains(dep) then if dep.isNotNil then
sel.insert(dep) begin
//auto update: item removed, detect on usage that it has disapeared if not sel.contains(dep) then
sel.insert(dep)
end
else else
//auto update: item removed, detect on usage that it has disapeared
itm.dependencies.Delete(j); itm.dependencies.Delete(j);
end; end;
end; end;