From 810e2f6727e2e6bc6aaebf65103899d70d266fa7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 12 Jul 2009 03:28:03 +0000 Subject: [PATCH] a little safety for when trackerless torrent support is added --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 7f6633582..ae1016955 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -826,7 +826,7 @@ int trashDataFile(const char * filename) - (void) updateAllTrackersForRemove: (NSMutableArray *) trackers { //check if no user-added groups - if ([[trackers objectAtIndex: 0] intValue] != 0) + if ([trackers size] == 0 || [[trackers objectAtIndex: 0] intValue] != 0) fAddedTrackers = NO; [self updateAllTrackers: trackers];