Changeset 13845


Ignore:
Timestamp:
Jan 23, 2013, 3:44:47 AM (8 years ago)
Author:
livings124
Message:

Use tr_torrentRenamePath() instead of the removed tr_torrentRename()

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r13834 r13845  
    11101110 * @callback_data: the pointer to pass in the callback's user_data arg
    11111111 *
    1112  * As a special case, renaming the root file in a torrent will allso
     1112 * As a special case, renaming the root file in a torrent will also
    11131113 * update tr_info.name.
    11141114 *
  • trunk/macosx/Torrent.m

    r13833 r13845  
    850850    NSDictionary * contextInfo = [@{ @"Nodes" : fFileList, @"CompletionHandler" : [[completionHandler copy] autorelease] } retain];
    851851   
    852     tr_torrentRename(fHandle, [newName UTF8String], renameCallback, contextInfo);
     852    tr_torrentRenamePath(fHandle, fInfo->name, [newName UTF8String], renameCallback, contextInfo);
    853853}
    854854
     
    862862    NSDictionary * contextInfo = [@{ @"Nodes" : @[ node ], @"CompletionHandler" : [[completionHandler copy] autorelease] } retain];
    863863   
    864     NSString * oldName = [[node path] stringByAppendingPathComponent: [node name]];
    865     tr_torrentRenamePath(fHandle, [oldName UTF8String], [newName UTF8String], renameCallback, contextInfo);
     864    NSString * oldPath = [[node path] stringByAppendingPathComponent: [node name]];
     865    tr_torrentRenamePath(fHandle, [oldPath UTF8String], [newName UTF8String], renameCallback, contextInfo);
    866866}
    867867
Note: See TracChangeset for help on using the changeset viewer.