Commit d09f5c3e authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/contact/ContactModel): add assert and update linphone

parent 4b79ac94
...@@ -100,6 +100,8 @@ void ContactModel::setVcardModelInternal (VcardModel *vcardModel) { ...@@ -100,6 +100,8 @@ void ContactModel::setVcardModelInternal (VcardModel *vcardModel) {
} }
void ContactModel::updateSipAddresses (VcardModel *oldVcardModel) { void ContactModel::updateSipAddresses (VcardModel *oldVcardModel) {
Q_ASSERT(oldVcardModel != nullptr);
QVariantList oldSipAddresses = oldVcardModel->getSipAddresses(); QVariantList oldSipAddresses = oldVcardModel->getSipAddresses();
QVariantList sipAddresses = mVcardModel->getSipAddresses(); QVariantList sipAddresses = mVcardModel->getSipAddresses();
QSet<QString> done; QSet<QString> done;
......
...@@ -135,7 +135,7 @@ ContactModel *ContactsListModel::addContact (VcardModel *vcard) { ...@@ -135,7 +135,7 @@ ContactModel *ContactsListModel::addContact (VcardModel *vcard) {
return nullptr; return nullptr;
} }
qInfo() << QStringLiteral("Add contact on vcard:") << vcard << contact; qInfo() << QStringLiteral("Add contact from vcard:") << contact << vcard;
int row = mList.count(); int row = mList.count();
......
linphone @ 5fb392bc
Subproject commit 57114440b1e573cebd4104623b6ad16df40ac800 Subproject commit 5fb392bccf5a317c1c9192cbc659699d8004ffae
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