mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
a little safety for when trackerless torrent support is added
This commit is contained in:
parent
4b1d40d6c1
commit
810e2f6727
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue