From 6c27ffbc95c694b4d88ae24b66e48fb3365cb0aa Mon Sep 17 00:00:00 2001 From: Basile Burg <basile.b@gmx.com> Date: Wed, 25 Oct 2017 02:05:00 +0200 Subject: [PATCH] fix #193 - libman, DUB fetch segfault --- src/ce_libmaneditor.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ce_libmaneditor.pas b/src/ce_libmaneditor.pas index ef4dcc2a..fad1b47d 100644 --- a/src/ce_libmaneditor.pas +++ b/src/ce_libmaneditor.pas @@ -525,7 +525,7 @@ begin and (TJSONObject(prj.json).Find('targetType').AsString = 'sourceLibrary') then begin - if ovw and not List.items.findCaption(nme, row) then + if (ovw and not List.items.findCaption(nme, row)) or not ovw then row := List.Items.Add; if row.Data.isNil then row.Data := LibMan.libraries.Add; @@ -558,7 +558,7 @@ begin prj.loadFromFile(dfn); if prj.filename.isNotEmpty and (prj.binaryKind = staticlib) then begin - if ovw and not List.items.findCaption(nme, row) then + if (ovw and not List.items.findCaption(nme, row)) or not ovw then row := List.Items.Add; if row.Data.isNil then row.Data := LibMan.libraries.Add;