From 09da69918e9f1b123a954795c9bb8eeb48dcf6e9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 13 Mar 2011 09:28:27 +0000 Subject: [PATCH] Make sure the .unwanted folder is removed on soft deletion --- src/qtlibtorrent/qtorrenthandle.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index 63699f566..44b00ec2f 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -325,12 +325,10 @@ QStringList QTorrentHandle::uneeded_files_path() const { QDir saveDir(save_path()); QStringList res; std::vector fp = torrent_handle::file_priorities(); - vector progress; - torrent_handle::file_progress(progress); torrent_info::file_iterator fi = torrent_handle::get_torrent_info().begin_files(); int i = 0; while(fi != torrent_handle::get_torrent_info().end_files()) { - if(fp[i] == 0 && progress[i] < filesize_at(i)) + if(fp[i] == 0) res << QDir::cleanPath(saveDir.absoluteFilePath(filepath(*fi))); fi++; ++i;