Changeset 13830


Ignore:
Timestamp:
Jan 22, 2013, 12:43:50 AM (8 years ago)
Author:
livings124
Message:

(libT) update the rename callback to include the previous torrent name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r13829 r13830  
    35493549  struct rename_data * data = vdata;
    35503550  tr_torrent * const tor = data->tor;
    3551 
    3552   tr_free (tor->info.name);
     3551  char * const oldname = tor->info.name;
     3552
    35533553  tor->info.name = data->newname;
    35543554  tr_torrentSetDirty (tor);
     
    35573557  /* callback */
    35583558  if (data->callback != NULL)
    3559     (*data->callback)(tor, data->oldpath, data->newname, error, data->callback_user_data);
     3559    (*data->callback)(tor, oldname, data->newname, error, data->callback_user_data);
    35603560
    35613561  /* cleanup */
     3562  tr_free (oldname);
    35623563  tr_free (data);
    35633564}
Note: See TracChangeset for help on using the changeset viewer.