mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Stop removing unneeded files on torrent soft deletion since those are hidden now
This commit is contained in:
parent
3ccb2fddff
commit
01b9e5c754
1 changed files with 3 additions and 2 deletions
|
@ -668,13 +668,14 @@ void QBtSession::deleteTorrent(QString hash, bool delete_local_files) {
|
||||||
uneeded_files = h.uneeded_files_path();
|
uneeded_files = h.uneeded_files_path();
|
||||||
s->remove_torrent(h);
|
s->remove_torrent(h);
|
||||||
// Remove unneeded files
|
// Remove unneeded files
|
||||||
foreach(const QString &uneeded_file, uneeded_files) {
|
// XXX: Disabled this now that uneeded files are hidden
|
||||||
|
/*foreach(const QString &uneeded_file, uneeded_files) {
|
||||||
qDebug("Removing uneeded file: %s", qPrintable(uneeded_file));
|
qDebug("Removing uneeded file: %s", qPrintable(uneeded_file));
|
||||||
misc::safeRemove(uneeded_file);
|
misc::safeRemove(uneeded_file);
|
||||||
const QString parent_folder = misc::branchPath(uneeded_file);
|
const QString parent_folder = misc::branchPath(uneeded_file);
|
||||||
qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder));
|
qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder));
|
||||||
QDir().rmpath(parent_folder);
|
QDir().rmpath(parent_folder);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
// Remove it from torrent backup directory
|
// Remove it from torrent backup directory
|
||||||
QDir torrentBackup(misc::BTBackupLocation());
|
QDir torrentBackup(misc::BTBackupLocation());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue