upstream fix, AV on exit.

This commit is contained in:
Basile Burg 2016-12-15 21:53:45 +01:00
parent 759808d832
commit 93b7b8f6bb
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 2 additions and 2 deletions

View File

@ -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;