]> granicus.if.org Git - transmission/commitdiff
change the (temporary) name at the cell level, not the torrent level
authorMitchell Livingston <livings124@transmissionbt.com>
Fri, 5 Aug 2011 03:11:22 +0000 (03:11 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Fri, 5 Aug 2011 03:11:22 +0000 (03:11 +0000)
macosx/Torrent.h
macosx/Torrent.m
macosx/TorrentCell.m

index 5999cd6509b012adf9040d01195de448eea5efef..afa0fc647d9f8b3009f05644c8b6f5efc9ba1e95 100644 (file)
 - (NSImage *) icon;
 
 - (NSString *) name;
+- (NSInteger) queuePosition;
 - (BOOL) isFolder;
 - (uint64_t) size;
 - (uint64_t) sizeLeft;
index 9788b5fa64e6bd5721a82fe7688540fa3b92c864..2d8911b1eed5f8f093d43957dd38d9a0032550a9 100644 (file)
@@ -614,8 +614,13 @@ int trashDataFile(const char * filename)
 
 - (NSString *) name
 {
-    return [NSString stringWithFormat: @"%d  %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
-    //return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
+    return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
+}
+
+#warning remove
+- (NSInteger) queuePosition
+{
+    return fStat->queuePosition;
 }
 
 - (BOOL) isFolder
index 90937b6feef1ff2e390d33ef37ec608821f1db81..51e71f710ca5437814358562086e18686d57b7b6 100644 (file)
 
 - (NSAttributedString *) attributedTitle
 {
-    NSString * title = [[self representedObject] name];
+    NSString * title = [NSString stringWithFormat: @"%d %@", [[self representedObject] queuePosition], [[self representedObject] name]];
+    //NSString * title = [[self representedObject] name];
     return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
 }