mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 17:26:21 +03:00
Always delete partfile (libtorrent 1.1.x).
This commit is contained in:
parent
8c36f753f9
commit
2efdddb9af
1 changed files with 4 additions and 0 deletions
|
@ -1040,7 +1040,11 @@ bool Session::deleteTorrent(const QString &hash, bool deleteLocalFiles)
|
|||
QStringList unwantedFiles;
|
||||
if (torrent->hasMetadata())
|
||||
unwantedFiles = torrent->absoluteFilePathsUnwanted();
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
m_nativeSession->remove_torrent(torrent->nativeHandle());
|
||||
#else
|
||||
m_nativeSession->remove_torrent(torrent->nativeHandle(), libt::session::delete_partfile);
|
||||
#endif
|
||||
// Remove unwanted and incomplete files
|
||||
foreach (const QString &unwantedFile, unwantedFiles) {
|
||||
qDebug("Removing unwanted file: %s", qPrintable(unwantedFile));
|
||||
|
|
Loading…
Reference in a new issue