Changeset 12623


Ignore:
Timestamp:
Aug 5, 2011, 2:20:17 AM (10 years ago)
Author:
livings124
Message:

fix a potential crasher with the displayed (temporary) name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r12618 r12623  
    615615- (NSString *) name
    616616{
    617     return [NSString stringWithFormat: @"%d  %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]];
     617    return [NSString stringWithFormat: @"%d  %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
    618618    //return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
    619619}
Note: See TracChangeset for help on using the changeset viewer.