From 80f7af11ca87b238b19c9e4f0a8b005cec839db5 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 16 Jan 2015 04:28:33 +0100 Subject: [PATCH] fix, added unhandled case when determining the files to analyze --- src/ce_todolist.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ce_todolist.pas b/src/ce_todolist.pas index 836109c8..9fb1e2e9 100644 --- a/src/ce_todolist.pas +++ b/src/ce_todolist.pas @@ -253,10 +253,10 @@ begin if not exeInSysPath(ToolExeName) then exit; if (fDoc = nil) and (fProj = nil)then exit; // - if (fProj <> nil) and (fDoc = nil) then asProject := true; - if (fProj = nil) and (fDoc <> nil) then asProject := false; - if (fProj <> nil) and (fDoc <> nil) and - (fProj.isProjectSource(fDoc.fileName)) then asProject:= true; + if (fProj <> nil) then if (fDoc = nil) then asProject := true; + if (fProj = nil) then if (fDoc <> nil) then asProject := false; + if (fProj <> nil) then if (fDoc <> nil) then asProject := (fProj.isProjectSource(fDoc.fileName)); + // killToolProcess; // process parameter fToolProcess := TCheckedAsyncProcess.Create(nil);