From 93b7b8f6bb759f2a41fdd04436531a14aceea891 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 15 Dec 2016 21:53:45 +0100 Subject: [PATCH] upstream fix, AV on exit. --- src/ce_gdb.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ce_gdb.pas b/src/ce_gdb.pas index 36332655..fe95267b 100644 --- a/src/ce_gdb.pas +++ b/src/ce_gdb.pas @@ -1066,8 +1066,8 @@ begin begin p := projectByIndex[i]; if not p.filename.fileExists or p.filename.isEmpty then - fProjects.Delete(i); - if (p.arguments.Count = 0) and (p.environmentPaths.Count = 0) and + fProjects.Delete(i) + else if (p.arguments.Count = 0) and (p.environmentPaths.Count = 0) and (p.workingDirectory = '') and (p.queryArguments = false) then fProjects.Delete(i); end;