mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
consider the corresponding torrent when comparing tracker nodes
This commit is contained in:
parent
6a6887242f
commit
bfc288a309
2 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue