]> granicus.if.org Git - transmission/commitdiff
consider the corresponding torrent when comparing tracker nodes
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 14 Jan 2012 16:06:39 +0000 (16:06 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 14 Jan 2012 16:06:39 +0000 (16:06 +0000)
macosx/InfoTrackersViewController.m
macosx/TrackerNode.m

index fa6d3551643598e43e2bcb313f8dc3f57a2043ab..97ad3d12fb7ff81e2f5556099823c0be8b06f05f 100644 (file)
         
         [fTrackerTable setTrackers: fTrackers];
         
-        if ([NSApp isOnLionOrBetter] && [fTrackers isEqualToArray: oldTrackers])
+        if ([NSApp isOnLionOrBetter] && (oldTrackers && [fTrackers isEqualToArray: oldTrackers]))
             [fTrackerTable setNeedsDisplay: YES];
         else
             [fTrackerTable reloadData];
index c0932fb68fc170e0098b7f0be9ed06bd475d56c4..0a84a96393977099e72e662ac8cf305b0c3fda1d 100644 (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]];
 }