mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 18:36:25 +02:00
LazUtils: TFileSearcher.Search: if SearchPath is empty, search current directory.
git-svn-id: trunk@48854 -
This commit is contained in:
parent
e222aaa1be
commit
a64855cad9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user