From fb8ae19af0f547d31694bc533d557594e299f8a3 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 8 Nov 2016 19:55:10 +0100 Subject: [PATCH] Fix incorrect number of updated messages when DB update fails. - #70 --- src/miscellaneous/databasequeries.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/miscellaneous/databasequeries.cpp b/src/miscellaneous/databasequeries.cpp index cf7b20e31..f4fda200e 100755 --- a/src/miscellaneous/databasequeries.cpp +++ b/src/miscellaneous/databasequeries.cpp @@ -628,6 +628,7 @@ int DatabaseQueries::updateMessages(QSqlDatabase db, if (ok != nullptr) { *ok = false; + updated_messages = 0; } } else {