1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

consider the corresponding torrent when comparing tracker nodes

This commit is contained in:
Mitchell Livingston 2012-01-14 16:06:39 +00:00
parent 6a6887242f
commit bfc288a309
2 changed files with 4 additions and 1 deletions

View file

@ -116,7 +116,7 @@
[fTrackerTable setTrackers: fTrackers];
if ([NSApp isOnLionOrBetter] && [fTrackers isEqualToArray: oldTrackers])
if ([NSApp isOnLionOrBetter] && (oldTrackers && [fTrackers isEqualToArray: oldTrackers]))
[fTrackerTable setNeedsDisplay: YES];
else
[fTrackerTable reloadData];

View file

@ -57,6 +57,9 @@
if (![object isKindOfClass: [self class]])
return NO;
if ([self torrent] != [object torrent])
return NO;
return [self tier] == [object tier] && [[self fullAnnounceAddress] isEqualToString: [object fullAnnounceAddress]];
}