fix, added unhandled case when determining the files to analyze

This commit is contained in:
Basile Burg 2015-01-16 04:28:33 +01:00
parent 08ef69ce89
commit 80f7af11ca
1 changed files with 4 additions and 4 deletions

View File

@ -253,10 +253,10 @@ begin
if not exeInSysPath(ToolExeName) then exit; if not exeInSysPath(ToolExeName) then exit;
if (fDoc = nil) and (fProj = nil)then exit; if (fDoc = nil) and (fProj = nil)then exit;
// //
if (fProj <> nil) and (fDoc = nil) then asProject := true; if (fProj <> nil) then if (fDoc = nil) then asProject := true;
if (fProj = nil) and (fDoc <> nil) then asProject := false; if (fProj = nil) then if (fDoc <> nil) then asProject := false;
if (fProj <> nil) and (fDoc <> nil) and if (fProj <> nil) then if (fDoc <> nil) then asProject := (fProj.isProjectSource(fDoc.fileName));
(fProj.isProjectSource(fDoc.fileName)) then asProject:= true; //
killToolProcess; killToolProcess;
// process parameter // process parameter
fToolProcess := TCheckedAsyncProcess.Create(nil); fToolProcess := TCheckedAsyncProcess.Create(nil);