mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(trunk libT) #2539: "incomplete folder" feature may lead to deleted files
This commit is contained in:
parent
3680896a19
commit
b5042148e8
1 changed files with 1 additions and 1 deletions
|
@ -2356,7 +2356,7 @@ tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
|
|||
deleteLocalData( tor, fileFunc );
|
||||
else {
|
||||
/* 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 );
|
||||
tr_free( path );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue