codetools: TFPCSourceCache.Update; do not scan if Directory empty

git-svn-id: trunk@28554 -
This commit is contained in:
mattias 2010-11-29 09:15:32 +00:00
parent 52060dfa52
commit dcde33b7ef

View File

@ -8133,7 +8133,10 @@ var
NewFiles: TStringList;
begin
Valid:=false;
NewFiles:=GatherFilesInFPCSources(Directory,OnProgress);
if Directory<>'' then
NewFiles:=GatherFilesInFPCSources(Directory,OnProgress)
else
NewFiles:=TStringList.Create;
Update(NewFiles);
end;