Fix database storage bug in ErrorLogModel

This commit is contained in:
Bart De Vries 2021-05-15 20:17:45 +02:00
parent 0c13326ab1
commit eab5d08acd

@ -66,7 +66,7 @@ void ErrorLogModel::monitorErrorMessages(const QString &url, const QString &id,
// Also add error to database // Also add error to database
QSqlQuery query; 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(":url"), error->url);
query.bindValue(QStringLiteral(":id"), error->id); query.bindValue(QStringLiteral(":id"), error->id);
query.bindValue(QStringLiteral(":code"), error->code); query.bindValue(QStringLiteral(":code"), error->code);