Changeset 1062 for trunk


Ignore:
Timestamp:
Nov 9, 2006, 6:10:07 AM (15 years ago)
Author:
livings124
Message:

a little cleanup for the last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1061 r1062  
    15731573    for (i = [newNames count] - 1; i >= 0; i--)
    15741574    {
    1575         if ([[[newNames objectAtIndex: i] pathExtension] caseInsensitiveCompare: @"torrent"] != NSOrderedSame)
     1575        file = [newNames objectAtIndex: i];
     1576        if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] != NSOrderedSame)
    15761577            [newNames removeObjectAtIndex: i];
    15771578        else
    1578             [newNames replaceObjectAtIndex: i withObject: [path stringByAppendingPathComponent: [newNames objectAtIndex: i]]];
     1579            [newNames replaceObjectAtIndex: i withObject: [path stringByAppendingPathComponent: file]];
    15791580    }
    15801581   
     
    15831584    {
    15841585        enumerator = [newNames objectEnumerator];
    1585         unsigned oldCount;
    15861586        while ((file = [enumerator nextObject]))
    15871587        {
     
    15911591            //check if torrent was opened
    15921592            if ([fTorrents count] > count)
    1593             {
    15941593                [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Torrent File Auto Added",
    15951594                    "Growl notification title") description: [file lastPathComponent]
    15961595                    notificationName: GROWL_AUTO_ADD iconData: nil priority: 0 isSticky: NO clickContext: nil];
    1597             }
    15981596        }
    15991597    }
    16001598    else
    1601     {
    16021599        [self openFiles: newNames];
    1603     }
    16041600   
    16051601    //create temporary torrents to check if an import fails because of an error
Note: See TracChangeset for help on using the changeset viewer.