Changeset 13845
- Timestamp:
- Jan 23, 2013, 3:44:47 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.h
r13834 r13845 1110 1110 * @callback_data: the pointer to pass in the callback's user_data arg 1111 1111 * 1112 * As a special case, renaming the root file in a torrent will al lso1112 * As a special case, renaming the root file in a torrent will also 1113 1113 * update tr_info.name. 1114 1114 * -
trunk/macosx/Torrent.m
r13833 r13845 850 850 NSDictionary * contextInfo = [@{ @"Nodes" : fFileList, @"CompletionHandler" : [[completionHandler copy] autorelease] } retain]; 851 851 852 tr_torrentRename (fHandle, [newName UTF8String], renameCallback, contextInfo);852 tr_torrentRenamePath(fHandle, fInfo->name, [newName UTF8String], renameCallback, contextInfo); 853 853 } 854 854 … … 862 862 NSDictionary * contextInfo = [@{ @"Nodes" : @[ node ], @"CompletionHandler" : [[completionHandler copy] autorelease] } retain]; 863 863 864 NSString * old Name= [[node path] stringByAppendingPathComponent: [node name]];865 tr_torrentRenamePath(fHandle, [old NameUTF8String], [newName UTF8String], renameCallback, contextInfo);864 NSString * oldPath = [[node path] stringByAppendingPathComponent: [node name]]; 865 tr_torrentRenamePath(fHandle, [oldPath UTF8String], [newName UTF8String], renameCallback, contextInfo); 866 866 } 867 867
Note: See TracChangeset
for help on using the changeset viewer.