mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
support torrents with no trackers in the Mac ui
This commit is contained in:
parent
cf69b11031
commit
52ef4a432e
2 changed files with 1 additions and 7 deletions
|
@ -1694,12 +1694,6 @@ typedef enum
|
|||
[addresses addObject: [(TrackerNode *)item fullAnnounceAddress]];
|
||||
}
|
||||
|
||||
if (oldCount == [addresses count])
|
||||
{
|
||||
NSBeep();
|
||||
return;
|
||||
}
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
|
||||
{
|
||||
NSAlert * alert = [[NSAlert alloc] init];
|
||||
|
|
|
@ -587,7 +587,7 @@ int trashDataFile(const char * filename)
|
|||
int count;
|
||||
tr_tracker_stat * stats = tr_torrentTrackers(fHandle, &count);
|
||||
|
||||
NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier];
|
||||
NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: (count > 0 ? count + stats[count-1].tier : 0)];
|
||||
|
||||
int prevTier = -1;
|
||||
for (int i=0; i < count; ++i)
|
||||
|
|
Loading…
Reference in a new issue