LazUtils: TFileSearcher.Search: if SearchPath is empty, search current directory.

git-svn-id: trunk@48854 -
This commit is contained in:
bart 2015-04-25 18:02:28 +00:00
parent e222aaa1be
commit a64855cad9

View File

@ -1169,8 +1169,14 @@ begin
if Dir<>'' then
SearchDirectories.Add(Dir);
end;
for i:=0 to SearchDirectories.Count-1 do
DoSearch(AppendPathDelim(SearchDirectories[i]), 0);
//Search currentdirectory if ASearchPath = ''
if (SearchDirectories.Count=0) then
DoSearch('',0)
else
begin
for i:=0 to SearchDirectories.Count-1 do
DoSearch(AppendPathDelim(SearchDirectories[i]), 0);
end;
finally
SearchDirectories.Free;
FSearching := False;