a little safety for when trackerless torrent support is added

This commit is contained in:
Mitchell Livingston
2009-07-12 03:28:03 +00:00
parent 4b1d40d6c1
commit 810e2f6727
+1 -1
View File
@@ -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];