diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 7d6310b17..54e40de74 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1761,6 +1761,8 @@ typedef enum } } + NSLog(@"%@", removeIndexes); + NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers."); if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"]) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 8dc02e52c..f76483af8 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -652,7 +652,10 @@ int trashDataFile(const char * filename) int newCount = 0; for (NSUInteger oldIndex = [indexes firstIndex]; oldIndex != NSNotFound; oldIndex = [indexes indexGreaterThanIndex: oldIndex]) + { + NSLog(@"oldIndex: %d %s", oldIndex, fInfo->trackers[oldIndex].announce); trackerStructs[newCount++] = fInfo->trackers[oldIndex]; + } const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, newCount); NSAssert(success, @"Removing tracker addresses failed");