From 6235d0d99e59cc901019fa22201316e0c8a682c3 Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 13 Oct 2013 11:29:13 +0000 Subject: show pica id of new created account; bugfix - insert type value when adding new contact git-svn-id: svn://localhost/project_picapica/trunk@279 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/contacts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pica-client/contacts.cpp') diff --git a/pica-client/contacts.cpp b/pica-client/contacts.cpp index 657ab12..0ae0338 100644 --- a/pica-client/contacts.cpp +++ b/pica-client/contacts.cpp @@ -59,9 +59,10 @@ void Contacts::Add(QByteArray id, ContactType type) if (!Exists(id)) { - query.prepare("insert into contacts (id, name, cert_pem, account_id) values (:id, NULL, NULL, :account_id)"); + query.prepare("insert into contacts (id, name, cert_pem, account_id, type) values (:id, NULL, NULL, :account_id, :type)"); query.bindValue(":id",id); query.bindValue(":account_id",account_id_); + query.bindValue(":type", type); query.exec(); } else -- cgit v1.2.1