From ccb6818e724dab3dc1d7a81deb85816f3ba37297 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 30 Apr 2019 23:44:27 +0200 Subject: [PATCH] filesaver: count logic was wrong if --continue wasn't given --- cli/filesaver.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/cli/filesaver.cpp b/cli/filesaver.cpp index bdfa59b..7d596ce 100644 --- a/cli/filesaver.cpp +++ b/cli/filesaver.cpp @@ -63,7 +63,7 @@ int FileSaver::processFiles(const QVector paths, std::function terminate{false}; - std::atomic errorsCount{0}; + std::atomic processedCount{0}; QtConcurrent::blockingMap(paths, [&](const QString &path) { @@ -78,27 +78,30 @@ int FileSaver::processFiles(const QVector paths, std::function