diff --git a/src/core/database.cpp b/src/core/database.cpp index 1f09db065..0447a6a26 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -719,6 +719,7 @@ void Database::DoBackup() { QSqlDatabase db(this->Connect()); // Before we overwrite anything, make sure the database is not corrupt + QMutexLocker l(&mutex_); const bool ok = IntegrityCheck(db); if (ok) {