mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
- Edit a bit of code in torrent permanent deletion to make sure all files are actually deleted
This commit is contained in:
parent
ef7af6bad6
commit
6d0aebe9cb
1 changed files with 4 additions and 2 deletions
|
@ -143,7 +143,8 @@ class file {
|
||||||
file *f;
|
file *f;
|
||||||
qDebug("We have %d children", children.size());
|
qDebug("We have %d children", children.size());
|
||||||
foreach(f, children) {
|
foreach(f, children) {
|
||||||
success = f->removeFromFS(saveDir) && success;
|
bool s = f->removeFromFS(saveDir);
|
||||||
|
success = s && success;
|
||||||
}
|
}
|
||||||
if(is_dir) {
|
if(is_dir) {
|
||||||
qDebug("trying to remove directory: %s", full_path.toUtf8().data());
|
qDebug("trying to remove directory: %s", full_path.toUtf8().data());
|
||||||
|
@ -151,7 +152,8 @@ class file {
|
||||||
dir.rmdir(full_path);
|
dir.rmdir(full_path);
|
||||||
} else {
|
} else {
|
||||||
qDebug("trying to remove file: %s", full_path.toUtf8().data());
|
qDebug("trying to remove file: %s", full_path.toUtf8().data());
|
||||||
success = QFile::remove(full_path) && success;
|
bool s = QFile::remove(full_path);
|
||||||
|
success = s && success;
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue