Changeset 9574


Ignore:
Timestamp:
Nov 26, 2009, 12:21:55 AM (12 years ago)
Author:
livings124
Message:

support torrents with no trackers in the Mac ui

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r9535 r9574  
    16951695    }
    16961696   
    1697     if (oldCount == [addresses count])
    1698     {
    1699         NSBeep();
    1700         return;
    1701     }
    1702    
    17031697    if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
    17041698    {
  • trunk/macosx/Torrent.m

    r9566 r9574  
    588588    tr_tracker_stat * stats = tr_torrentTrackers(fHandle, &count);
    589589   
    590     NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier];
     590    NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: (count > 0 ? count + stats[count-1].tier : 0)];
    591591   
    592592    int prevTier = -1;
Note: See TracChangeset for help on using the changeset viewer.