Ignore:
Timestamp:
Oct 11, 2009, 1:42:10 PM (13 years ago)
Author:
livings124
Message:

#2488 when sorting by tracker, first use the tracker that comes first alphabetically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9291 r9292  
    19421942                                                                nameDescriptor, nil];
    19431943        }
    1944         #warning broken
    19451944        else if ([sortType isEqualToString: SORT_TRACKER])
    19461945        {
    1947             NSSortDescriptor * trackerDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"trackerAddressAnnounce" ascending: asc
     1946            NSSortDescriptor * trackerDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"trackerSortKey" ascending: asc
    19481947                                                    selector: @selector(localizedCaseInsensitiveCompare:)] autorelease];
    19491948           
     
    34733472            case SORT_ACTIVITY_TAG:
    34743473                sortType = SORT_ACTIVITY;
     3474                break;
    34753475            default:
    34763476                NSAssert1(NO, @"Unknown sort tag received: %d", [menuItem tag]);
     3477                return;
    34773478        }
    34783479       
     
    41114112        if (!torrent)
    41124113        {
    4113             [pool release];
     4114            [pool drain];
    41144115           
    41154116            NSLog(@"No torrent found matching the given torrent struct from the RPC callback!");
Note: See TracChangeset for help on using the changeset viewer.