Database: Move error_reported

This commit is contained in:
Jonas Kvinge 2023-04-22 14:38:45 +02:00
parent 9ad430915c
commit bdf6844b74
1 changed files with 1 additions and 1 deletions

View File

@ -486,11 +486,11 @@ bool Database::IntegrityCheck(const QSqlDatabase &db) {
const int task_id = app_->task_manager()->StartTask(tr("Integrity check"));
bool ok = false;
bool error_reported = false;
// Ask for 10 error messages at most.
SqlQuery q(db);
q.prepare("PRAGMA integrity_check(10)");
if (q.Exec()) {
bool error_reported = false;
while (q.next()) {
QString message = q.value(0).toString();