Changeset 8796


Ignore:
Timestamp:
Jul 12, 2009, 11:52:58 AM (13 years ago)
Author:
livings124
Message:

a little more checking when removing trackers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r8461 r8796  
    17021702   
    17031703    NSUInteger index = 1;
    1704     if ([[fTorrents objectAtIndex: 0] hasAddedTrackers])
     1704    if ([fTrackers size] > 0 && [[fTorrents objectAtIndex: 0] hasAddedTrackers])
    17051705    {
    17061706        for (; index < [fTrackers count]; index++)
     
    17251725    while (i < [fTrackers count])
    17261726    {
    1727         BOOL builtIn = i != 0 || [[fTrackers objectAtIndex: i] intValue] != 0;
     1727        const BOOL builtIn = i != 0 || [[fTrackers objectAtIndex: i] intValue] != 0;
    17281728       
    17291729        //if a group is selected, remove all trackers in the group
Note: See TracChangeset for help on using the changeset viewer.