Changeset 74


Ignore:
Timestamp:
Jan 31, 2006, 4:19:31 AM (15 years ago)
Author:
titer
Message:

Fixes crash when the user is always asked for the download location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NameCell.m

    r56 r74  
    3535                    [NSString stringForFileSize: stat->info.totalSize]];
    3636
    37     fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
    38                 [[NSString stringWithUTF8String: stat->folder]
    39                 stringByAppendingPathComponent: fNameString]];                 
     37    if( stat->folder )
     38        fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
     39                    [[NSString stringWithUTF8String: stat->folder]
     40                    stringByAppendingPathComponent: fNameString]];
     41    else
     42        /* XXX The torrent is still being opened, the destination hasn't
     43           been chosen yet. It shouldn't be added to the table view so
     44           soon */
     45        fIcon = [[NSWorkspace sharedWorkspace] iconForFile: @"/System"];
    4046    [fIcon setFlipped: YES];
    4147
Note: See TracChangeset for help on using the changeset viewer.