(trunk libT) #2539: "incomplete folder" feature may lead to deleted files
This commit is contained in:
parent
3680896a19
commit
b5042148e8
|
@ -2356,7 +2356,7 @@ tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
|
||||||
deleteLocalData( tor, fileFunc );
|
deleteLocalData( tor, fileFunc );
|
||||||
else {
|
else {
|
||||||
/* torrent only has one file */
|
/* torrent only has one file */
|
||||||
char * path = tr_torrentFindFile( tor, 0 );
|
char * path = tr_buildPath( tor->currentDir, tor->info.files[0].name, NULL );
|
||||||
fileFunc( path );
|
fileFunc( path );
|
||||||
tr_free( path );
|
tr_free( path );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue