Make sure the .unwanted folder is removed on torrent soft deletion

This commit is contained in:
Christophe Dumez
2011-03-13 09:30:35 +00:00
parent 01fcf82b0c
commit abeed2c6f0
2 changed files with 3 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.6.8
* Sn Mar 13 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.8
- BUFIX: Fix compilation with libtorrent v0.14.x
- BUGFIX: Fix issues when writing on NTFS (Linux, Mac)
- BUGFIX: Fix root folder being cut off if the torrent comes from a scanned folder (Christian Kandeler)
- BUGFIX: Improve folder removal behavior
- BUGFIX: Make sure the .unwanted folder is deleted on soft torrent removal
* Sat Feb 26 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.7
- BUGFIX: Encoding fixes (Windows)

View File

@@ -325,12 +325,10 @@ QStringList QTorrentHandle::uneeded_files_path() const {
QDir saveDir(save_path());
QStringList res;
std::vector<int> fp = torrent_handle::file_priorities();
vector<size_type> 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;