From 8b999ed4f7acd0034309f659482392a13e81973d Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 22 Apr 2019 21:08:31 +0200 Subject: [PATCH] CommandDelete: Bugfix: Deleted existing instead of non-existing files --- cli/commanddelete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/commanddelete.cpp b/cli/commanddelete.cpp index 3b08576..6dc0bda 100644 --- a/cli/commanddelete.cpp +++ b/cli/commanddelete.cpp @@ -20,7 +20,7 @@ int CommandDelete::removeNonExistent(bool verbose, bool dryRun, QString pattern) if(!dryRun) { QFileInfo fileInfo(file.absPath); - if(fileInfo.exists()) + if(!fileInfo.exists()) { if(this->dbService->deleteFile(file.absPath)) {