Skip to content
Snippets Groups Projects
Commit c915e243 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

[ #54772 ] Limit the number of PlaceHolderContact to 1 per UID

parent cbc63741
Branches
Tags
No related merge requests found
......@@ -177,6 +177,11 @@ Contact* ContactModel::getPlaceHolder(const QByteArray& uid )
return ct;
}
//Do not re-create if it already exist
ct = m_hPlaceholders[uid];
if (ct)
return ct;
ContactPlaceHolder* ct2 = new ContactPlaceHolder(uid);
m_hPlaceholders[ct2->uid()] = ct2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment