Use NSDiacriticInsensitiveSearch in file list search, to match the transfer list search.
This commit is contained in:
parent
a6f90b6a2e
commit
5b01685146
|
@ -115,7 +115,7 @@ typedef enum
|
||||||
NSMutableArray * list = [NSMutableArray arrayWithCapacity: [fTorrent fileCount]];
|
NSMutableArray * list = [NSMutableArray arrayWithCapacity: [fTorrent fileCount]];
|
||||||
|
|
||||||
for (FileListNode * node in [fTorrent flatFileList])
|
for (FileListNode * node in [fTorrent flatFileList])
|
||||||
if ([[node name] rangeOfString: fFilterText options: NSCaseInsensitiveSearch].location != NSNotFound)
|
if ([[node name] rangeOfString: fFilterText options: (NSCaseInsensitiveSearch | NSDiacriticInsensitiveSearch)].location != NSNotFound)
|
||||||
[list addObject: node];
|
[list addObject: node];
|
||||||
|
|
||||||
fFileList = [[NSArray alloc] initWithArray: list];
|
fFileList = [[NSArray alloc] initWithArray: list];
|
||||||
|
|
Loading…
Reference in New Issue