Ignore:
Timestamp:
May 22, 2008, 9:06:56 PM (14 years ago)
Author:
livings124
Message:

streamline FileListNode?.m, moving asserts to more appropriate locations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r5908 r5910  
    16651665            if ([pathComponents count] > 0)
    16661666            {
    1667                 //determine if node already exists
     1667                //determine if folder node already exists
    16681668                NSEnumerator * enumerator = [fileList objectEnumerator];
    16691669                FileListNode * node;
    16701670                while ((node = [enumerator nextObject]))
    1671                     if ([[node name] isEqualToString: name])
     1671                    if ([[node name] isEqualToString: name] && [node isFolder])
    16721672                        break;
    16731673               
     
    16791679                }
    16801680               
    1681                 [node insertIndex: i];
     1681                [node insertIndex: i withSize: file->length];
    16821682                [self insertPath: pathComponents forParent: node fileSize: file->length index: i];
    16831683            }
     
    17301730    if (isFolder)
    17311731    {
    1732         [node insertIndex: index];
     1732        [node insertIndex: index withSize: size];
    17331733       
    17341734        [components removeObjectAtIndex: 0];
Note: See TracChangeset for help on using the changeset viewer.