Ignore:
Timestamp:
Sep 27, 2009, 4:37:57 PM (13 years ago)
Author:
livings124
Message:

fix using the filter bar to filter by tracker; add options to make the filter text searching less strict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9171 r9192  
    20242024            if (filterTracker)
    20252025            {
    2026                 #warning fix!
    2027                 /*BOOL removeTextField = YES;
    2028                 for (NSString * tracker in [torrent allTrackers: NO])
     2026                BOOL removeTextField = YES;
     2027                for (NSString * tracker in [torrent allTrackersFlat])
    20292028                {
    2030                     if ([tracker rangeOfString: searchString options: NSCaseInsensitiveSearch].location != NSNotFound)
     2029                    if ([tracker rangeOfString: searchString options:
     2030                            (NSCaseInsensitiveSearch | NSDiacriticInsensitiveSearch | NSWidthInsensitiveSearch)].location != NSNotFound)
    20312031                    {
    20322032                        removeTextField = NO;
     
    20362036               
    20372037                if (removeTextField)
    2038                     continue;*/
     2038                    continue;
    20392039            }
    20402040            else
    20412041            {
    2042                 if ([[torrent name] rangeOfString: searchString options: NSCaseInsensitiveSearch].location == NSNotFound)
     2042                if ([[torrent name] rangeOfString: searchString options:
     2043                        (NSCaseInsensitiveSearch | NSDiacriticInsensitiveSearch | NSWidthInsensitiveSearch)].location == NSNotFound)
    20432044                    continue;
    20442045            }
Note: See TracChangeset for help on using the changeset viewer.