Changeset 9440


Ignore:
Timestamp:
Oct 30, 2009, 2:58:30 AM (13 years ago)
Author:
charles
Message:

(trunk libT) fix regression introduced by #2539 that caused single-file torrents to not be deleted even if the user requested it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9435 r9440  
    23542354
    23552355    if( tor->info.fileCount > 1 )
     2356    {
    23562357        deleteLocalData( tor, fileFunc );
    2357     else {
     2358    }
     2359    else
     2360    {
     2361        char * tmp;
     2362
    23582363        /* torrent only has one file */
    23592364        char * path = tr_buildPath( tor->currentDir, tor->info.files[0].name, NULL );
    23602365        fileFunc( path );
    23612366        tr_free( path );
     2367
     2368       
     2369        tmp = tr_torrentBuildPartial( tor, 0 );
     2370        path = tr_buildPath( tor->currentDir, tmp, NULL );
     2371        fileFunc( path );
     2372        tr_free( path );
     2373        tr_free( tmp );
    23622374    }
    23632375}
Note: See TracChangeset for help on using the changeset viewer.