count, not size

This commit is contained in:
Mitchell Livingston 2009-07-14 00:11:50 +00:00
parent f443d6d113
commit 1170ac2c73
2 changed files with 2 additions and 2 deletions

View File

@ -1701,7 +1701,7 @@ typedef enum
[[self window] makeKeyWindow];
NSUInteger index = 1;
if ([fTrackers size] > 0 && [[fTorrents objectAtIndex: 0] hasAddedTrackers])
if ([fTrackers count] > 0 && [[fTorrents objectAtIndex: 0] hasAddedTrackers])
{
for (; index < [fTrackers count]; index++)
if ([[fTrackers objectAtIndex: index] isKindOfClass: [NSNumber class]])

View File

@ -826,7 +826,7 @@ int trashDataFile(const char * filename)
- (void) updateAllTrackersForRemove: (NSMutableArray *) trackers
{
//check if no user-added groups
if ([trackers size] == 0 || [[trackers objectAtIndex: 0] intValue] != 0)
if ([trackers count] == 0 || [[trackers objectAtIndex: 0] intValue] != 0)
fAddedTrackers = NO;
[self updateAllTrackers: trackers];