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 {