mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
fix(src/components/contact/ContactModel): map contact model to linphone friend when it is created from vcard
This commit is contained in:
parent
7afa395066
commit
a067245eca
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue