1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

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

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];