diff options
author | Gustavo Pichorim Boiko <gustavo.boiko@collabora.co.uk> | 2011-03-29 14:14:32 -0700 |
---|---|---|
committer | Gustavo Pichorim Boiko <gustavo.boiko@collabora.co.uk> | 2011-04-13 07:44:25 -0700 |
commit | 0f62f8464cbf7e7a36efeabd0adc94a1ff8bd300 (patch) | |
tree | 504137d6b7a7cef65dd764679541991ec76e5550 | |
parent | efdbc762b4eeb7344ccc7838c6df670c7fc7cb15 (diff) |
Only notify new contacts if there is any
-rw-r--r-- | TelepathyQt4Yell/Models/accounts-model-item.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TelepathyQt4Yell/Models/accounts-model-item.cpp b/TelepathyQt4Yell/Models/accounts-model-item.cpp index 9320112..95c4e89 100644 --- a/TelepathyQt4Yell/Models/accounts-model-item.cpp +++ b/TelepathyQt4Yell/Models/accounts-model-item.cpp @@ -283,7 +283,9 @@ void AccountsModelItem::onContactsChanged(const Tp::Contacts &addedContacts, newNodes.append(new ContactModelItem(contact)); } } - emit childrenAdded(this, newNodes); + if (newNodes.count()) { + emit childrenAdded(this, newNodes); + } } void AccountsModelItem::onStatusChanged(Tp::ConnectionStatus status) |