Ignore:
Timestamp:
Oct 25, 2007, 8:32:16 PM (15 years ago)
Author:
livings124
Message:

fix mistake in [3560]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3560 r3563  
    18531853        filtering = YES;
    18541854       
    1855         NSString * filterType = [fDefaults stringForKey: @"FilterSearchType"];
    18561855        Torrent * torrent;
    1857         BOOL filterTracker = [filterType isEqualToString: FILTER_TYPE_TRACKER], remove;
     1856        BOOL filterTracker = [[fDefaults stringForKey: @"FilterSearchType"] isEqualToString: FILTER_TYPE_TRACKER], remove;
    18581857       
    18591858        int i;
     
    18611860        {
    18621861            torrent = [tempTorrents objectAtIndex: i];
    1863             remove = NO;
     1862            remove = YES;
    18641863           
    18651864            if (filterTracker)
     
    18681867                NSArray * subTrackers;
    18691868                NSString * tracker;
    1870                 while (!remove && (subTrackers = [trackerEnumerator nextObject]))
     1869                while (remove && (subTrackers = [trackerEnumerator nextObject]))
    18711870                {
    18721871                    subTrackerEnumerator = [subTrackers objectEnumerator];
    18731872                    while ((tracker = [subTrackerEnumerator nextObject]))
    18741873                    {
    1875                         if ([tracker rangeOfString: searchString options: NSCaseInsensitiveSearch].location == NSNotFound)
     1874                        if ([tracker rangeOfString: searchString options: NSCaseInsensitiveSearch].location != NSNotFound)
    18761875                        {
    1877                             remove = YES;
     1876                            remove = NO;
    18781877                            break;
    18791878                        }
Note: See TracChangeset for help on using the changeset viewer.