diff --git a/linphone-desktop/src/components/contact/ContactModel.cpp b/linphone-desktop/src/components/contact/ContactModel.cpp index 13ba01fc6..3680d5747 100644 --- a/linphone-desktop/src/components/contact/ContactModel.cpp +++ b/linphone-desktop/src/components/contact/ContactModel.cpp @@ -46,6 +46,8 @@ ContactModel::ContactModel (QObject *parent, VcardModel *vcard) : QObject(parent throw invalid_argument("A contact is already linked to this vcard."); m_linphone_friend = linphone::Friend::newFromVcard(vcard->m_vcard); + m_linphone_friend->setData("contact-model", *this); + m_vcard.reset(vcard); engine->setObjectOwnership(vcard, QQmlEngine::CppOwnership);