From eab5d08acd9ae77c0a10a3b81a65748e05c1efe5 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Sat, 15 May 2021 20:17:45 +0200 Subject: [PATCH] Fix database storage bug in ErrorLogModel --- src/errorlogmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errorlogmodel.cpp b/src/errorlogmodel.cpp index 10a8fde8..3e844bab 100644 --- a/src/errorlogmodel.cpp +++ b/src/errorlogmodel.cpp @@ -66,7 +66,7 @@ void ErrorLogModel::monitorErrorMessages(const QString &url, const QString &id, // Also add error to database QSqlQuery query; - query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :string, :date);")); + query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :message, :date);")); query.bindValue(QStringLiteral(":url"), error->url); query.bindValue(QStringLiteral(":id"), error->id); query.bindValue(QStringLiteral(":code"), error->code);