ShellListView: allow for case-sensitive masks. Issue #0029255. Patch by ruewa, modified by me.

git-svn-id: trunk@51037 -
This commit is contained in:
bart 2015-12-26 12:30:59 +00:00
parent 0703a58eca
commit cc42e8d513

View File

@ -656,10 +656,16 @@ begin
else MaskStr := AMask; else MaskStr := AMask;
// The string list implements support for multiple masks separated // The string list implements support for multiple masks separated
// by semi-comma ";" // by semi-colon ";"
MaskStrings := TStringList.Create; MaskStrings := TStringList.Create;
FileTree:=TAvgLvlTree.Create(@STVCompareFiles); FileTree:=TAvgLvlTree.Create(@STVCompareFiles);
try try
{$ifdef NotLiteralFilenames}
MaskStrings.CaseSensitive := False;
{$else}
MaskStrings.CaseSensitive := True;
{$endif}
MaskStrings.Delimiter := ';'; MaskStrings.Delimiter := ';';
MaskStrings.DelimitedText := MaskStr; MaskStrings.DelimitedText := MaskStr;