Commit a067245e authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/contact/ContactModel): map contact model to linphone friend...

fix(src/components/contact/ContactModel): map contact model to linphone friend when it is created from vcard
parent 7afa3950
...@@ -46,6 +46,8 @@ ContactModel::ContactModel (QObject *parent, VcardModel *vcard) : QObject(parent ...@@ -46,6 +46,8 @@ ContactModel::ContactModel (QObject *parent, VcardModel *vcard) : QObject(parent
throw invalid_argument("A contact is already linked to this vcard."); throw invalid_argument("A contact is already linked to this vcard.");
m_linphone_friend = linphone::Friend::newFromVcard(vcard->m_vcard); m_linphone_friend = linphone::Friend::newFromVcard(vcard->m_vcard);
m_linphone_friend->setData("contact-model", *this);
m_vcard.reset(vcard); m_vcard.reset(vcard);
engine->setObjectOwnership(vcard, QQmlEngine::CppOwnership); engine->setObjectOwnership(vcard, QQmlEngine::CppOwnership);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment