Commit 35efad02 authored by Ronan's avatar Ronan Committed by Ronan

fix(ContactModel): destroy correctly vcard

parent 3948f67c
...@@ -95,6 +95,7 @@ void ContactModel::setVcardModelInternal (VcardModel *vcardModel) { ...@@ -95,6 +95,7 @@ void ContactModel::setVcardModelInternal (VcardModel *vcardModel) {
mVcardModel->mIsReadOnly = true; mVcardModel->mIsReadOnly = true;
App::getInstance()->getEngine()->setObjectOwnership(mVcardModel, QQmlEngine::CppOwnership); App::getInstance()->getEngine()->setObjectOwnership(mVcardModel, QQmlEngine::CppOwnership);
mVcardModel->setParent(this);
if (mLinphoneFriend->getVcard() != vcardModel->mVcard) if (mLinphoneFriend->getVcard() != vcardModel->mVcard)
mLinphoneFriend->setVcard(vcardModel->mVcard); mLinphoneFriend->setVcard(vcardModel->mVcard);
......
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