From 6d0aebe9cb8b6f609bfeca4b98b97e929c3b2515 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 16 Sep 2007 15:13:32 +0000 Subject: [PATCH] - Edit a bit of code in torrent permanent deletion to make sure all files are actually deleted --- src/arborescence.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arborescence.h b/src/arborescence.h index 09723bf86..ff1a23a1d 100644 --- a/src/arborescence.h +++ b/src/arborescence.h @@ -143,7 +143,8 @@ class file { file *f; qDebug("We have %d children", children.size()); foreach(f, children) { - success = f->removeFromFS(saveDir) && success; + bool s = f->removeFromFS(saveDir); + success = s && success; } if(is_dir) { qDebug("trying to remove directory: %s", full_path.toUtf8().data()); @@ -151,7 +152,8 @@ class file { dir.rmdir(full_path); } else { 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; }