summaryrefslogtreecommitdiffstats
path: root/pica-client
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-02 16:50:07 +0400
committerAnton <anton@picapica>2019-03-02 16:50:07 +0400
commit087f2ae516f0b1c61ccc3d5998b66ab4e2c4fe87 (patch)
tree3f5b440fe3078163cc1ad57b0b3295a1227b9062 /pica-client
parent0b49edf464a238e7e7ff141310681613b1b1b050 (diff)
downloadpica-pica-087f2ae516f0b1c61ccc3d5998b66ab4e2c4fe87.tar.gz
pica-pica-087f2ae516f0b1c61ccc3d5998b66ab4e2c4fe87.zip
pica-client: bugfix, invalid bound variable name in sql query
Diffstat (limited to 'pica-client')
-rw-r--r--pica-client/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pica-client/settings.cpp b/pica-client/settings.cpp
index 703e5f2..3b2ad3d 100644
--- a/pica-client/settings.cpp
+++ b/pica-client/settings.cpp
@@ -78,7 +78,7 @@ void Settings::storeValue(QString name, QString val)
QSqlQuery query;
query.prepare("insert into settings (name, value) values (:name, :val)");
- query.bindValue(":addr", name);
+ query.bindValue(":name", name);
query.bindValue(":val", val);
query.exec();