~ubuntu-branches/ubuntu/trusty/ktp-text-ui/trusty

« back to all changes in this revision

Viewing changes to logviewer/person-entity-merge-model.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2014-02-18 00:15:31 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20140218001531-cxmvzwhvhr03qox8
Tags: 0.7.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
                bool found = false;
425
425
                for (int k = 0; k < m_contactsModel->rowCount(index); ++k) {
426
426
                    const QModelIndex childIndex = m_contactsModel->index(k, 0, index);
427
 
                    if (m_contactsModel->data(childIndex, KTp::IdRole).toStringList().contains(entity.id())) {
 
427
                    if (m_contactsModel->data(childIndex, KTp::IdRole).toString() == entity.id()) {
428
428
                        //kDebug() << "\tFound matching persona" << m_personsModel->data(index, PersonsModel::UriRole).toString();
429
429
                        //kDebug() << "\t\tFound matching contact" << m_personsModel->data(childIndex, PersonsModel::IMRole).toString();
430
430
                        parentItem = itemForPersona(index);