summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Pichorim Boiko <gustavo.boiko@collabora.co.uk>2011-03-29 14:14:32 -0700
committerGustavo Pichorim Boiko <gustavo.boiko@collabora.co.uk>2011-04-13 07:44:25 -0700
commit0f62f8464cbf7e7a36efeabd0adc94a1ff8bd300 (patch)
tree504137d6b7a7cef65dd764679541991ec76e5550
parentefdbc762b4eeb7344ccc7838c6df670c7fc7cb15 (diff)
Only notify new contacts if there is any
-rw-r--r--TelepathyQt4Yell/Models/accounts-model-item.cpp4
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)