mirror of https://gitlab.com/basile.b/dexed.git
fix #240 - Dependencies of a libman entry could be removed
This commit is contained in:
parent
9f982830d8
commit
d6732c15e4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue