Ignore:
Timestamp:
Oct 17, 2009, 5:15:37 PM (13 years ago)
Author:
livings124
Message:

only remove a torrent from the queue for a local error, not tracker error; miscellaneous trivial adjustments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9314 r9316  
    894894        tr_ctor * ctor = tr_ctorNew(fLib);
    895895        tr_ctorSetMetainfoFromFile(ctor, [torrentPath UTF8String]);
    896         int result = tr_torrentParse(ctor, &info);
     896        tr_parse_result result = tr_torrentParse(ctor, &info);
    897897        if (result != TR_PARSE_OK)
    898898        {
     
    904904                    [self invalidOpenAlert: [torrentPath lastPathComponent]];
    905905            }
    906             else //this shouldn't happen
    907                 NSLog(@"Unknown error code (%d) when attempting to open \"%@\"", result, torrentPath);
     906            else
     907                NSAssert2(NO, @"Unknown error code (%d) when attempting to open \"%@\"", result, torrentPath);
    908908           
    909909            tr_ctorFree(ctor);
     
    39843984    {
    39853985        if (!hasSeparator)
    3986             [fDockMenu insertItem: [NSMenuItem separatorItem] atIndex: seeding > 0 && downloading > 0 ? 2 : 1];
     3986            [fDockMenu insertItem: [NSMenuItem separatorItem] atIndex: (seeding > 0 && downloading > 0) ? 2 : 1];
    39873987    }
    39883988    else
Note: See TracChangeset for help on using the changeset viewer.