TFileSearcher: use the new Options parameter for the MaskList.

git-svn-id: trunk@62783 -
This commit is contained in:
bart 2020-03-20 17:59:40 +00:00
parent 35ea303818
commit e513f7a26a

View File

@ -824,10 +824,14 @@ var
Dir: String;
i: Integer;
OtherDir: String;
MaskOptions: TMaskOptions;
begin
if FSearching then RaiseSearchingError;
MaskList := TMaskList.Create(ASearchMask, FMaskSeparator, CaseSensitive);
if CaseSensitive then
MaskOptions := [moCaseSensitive]
else
MaskOptions := [];
MaskList := TMaskList.Create(ASearchMask, FMaskSeparator, MaskOptions);
// empty mask = all files mask
if MaskList.Count = 0 then
FreeAndNil(MaskList);