summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-10-11 11:33:52 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-10-11 11:33:52 -0300
commit8f6fe19d5702865ac45c02598f605fb70f163d1b (patch)
tree5f79a1d7d62aaa430992dae3faa0f939b1b41381 /qt4
parent8d8d4df5a5c14d3a9ffe7ca0671ece87a3c2ca25 (diff)
ContactManager: Early return in requestContactAvatars if no contact was given.
Diffstat (limited to 'qt4')
-rw-r--r--qt4/TelepathyQt4/contact-manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt4/TelepathyQt4/contact-manager.cpp b/qt4/TelepathyQt4/contact-manager.cpp
index 585b8a7e5..e1ec54e4a 100644
--- a/qt4/TelepathyQt4/contact-manager.cpp
+++ b/qt4/TelepathyQt4/contact-manager.cpp
@@ -1124,6 +1124,10 @@ ContactPtr ContactManager::lookupContactByHandle(uint handle)
*/
void ContactManager::requestContactAvatars(const QList<ContactPtr> &contacts)
{
+ if (contacts.isEmpty()) {
+ return;
+ }
+
if (!mPriv->requestAvatarsIdle) {
mPriv->requestAvatarsIdle = true;
QTimer::singleShot(0, this, SLOT(doRequestAvatars()));