Changeset 12626


Ignore:
Timestamp:
Aug 5, 2011, 3:11:22 AM (10 years ago)
Author:
livings124
Message:

change the (temporary) name at the cell level, not the torrent level

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.h

    r12612 r12626  
    128128
    129129- (NSString *) name;
     130- (NSInteger) queuePosition;
    130131- (BOOL) isFolder;
    131132- (uint64_t) size;
  • trunk/macosx/Torrent.m

    r12623 r12626  
    615615- (NSString *) name
    616616{
    617     return [NSString stringWithFormat: @"%d  %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
    618     //return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
     617    return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
     618}
     619
     620#warning remove
     621- (NSInteger) queuePosition
     622{
     623    return fStat->queuePosition;
    619624}
    620625
  • trunk/macosx/TorrentCell.m

    r12598 r12626  
    807807- (NSAttributedString *) attributedTitle
    808808{
    809     NSString * title = [[self representedObject] name];
     809    NSString * title = [NSString stringWithFormat: @"%d %@", [[self representedObject] queuePosition], [[self representedObject] name]];
     810    //NSString * title = [[self representedObject] name];
    810811    return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
    811812}
Note: See TracChangeset for help on using the changeset viewer.