From d6732c15e49ae90fd52041a667790ee3e9bf57c1 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 11 Feb 2018 02:21:44 +0100 Subject: [PATCH] fix #240 - Dependencies of a libman entry could be removed --- src/ce_libman.pas | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ce_libman.pas b/src/ce_libman.pas index bb7aaa58..f6868856 100644 --- a/src/ce_libman.pas +++ b/src/ce_libman.pas @@ -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;