IDE: package links: fixed cleaning up duplicate ids for same lpk file

git-svn-id: branches/fixes_1_4@47665 -
This commit is contained in:
mattias 2015-02-09 19:03:23 +00:00
parent 5bc33bf3f1
commit e80945cb2a

View File

@ -631,7 +631,7 @@ begin
debugln(['Warning: TPackageLinks.UpdateUserLinks two links for file: ',NewPkgLink.LPKFilename,' A=',OtherLink.IDAsString,' B=',NewPkgLink.IDAsString]);
if OtherLink.LastUsed<NewPkgLink.LastUsed then begin
debugln(['Warning: TPackageLinks.UpdateUserLinks removing older link ',OtherLink.IDAsString]);
FUserLinksSortID.Delete(OtherNode);
FUserLinksSortID.RemovePointer(OtherLink);
FUserLinksSortFile.Delete(OtherNode);
OtherLink.Release;
end else begin