From 01b9e5c75468bc8bb93a1577bb2a3cfe94f7be17 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 8 Jan 2011 13:36:29 +0000 Subject: [PATCH] Stop removing unneeded files on torrent soft deletion since those are hidden now --- src/qtlibtorrent/qbtsession.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 3de89e878..948fefd2c 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -668,13 +668,14 @@ void QBtSession::deleteTorrent(QString hash, bool delete_local_files) { uneeded_files = h.uneeded_files_path(); s->remove_torrent(h); // 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)); misc::safeRemove(uneeded_file); const QString parent_folder = misc::branchPath(uneeded_file); qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder)); QDir().rmpath(parent_folder); - } + }*/ } // Remove it from torrent backup directory QDir torrentBackup(misc::BTBackupLocation());