diff --git a/src/contactmodel.cpp b/src/contactmodel.cpp index c6dd9e56f69d2e262479ed43606105b9ae5fc0c4..56485c75a4078fe9ac0f07ac6db25d93423ea850 100644 --- a/src/contactmodel.cpp +++ b/src/contactmodel.cpp @@ -236,7 +236,7 @@ bool ContactModel::addContact(Contact* c) //Deprecate the placeholder if (m_hPlaceholders.contains(c->uid())) { - Contact* c2 = m_hPlaceholders[c->uid()]; + ContactPlaceHolder* c2 = m_hPlaceholders[c->uid()]; if (c2) { c2->merge(c); m_hPlaceholders[c->uid()] = nullptr;