From a6eead7cb98e59045ec513889a86c715abb06188 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Sun, 26 Sep 2010 11:19:00 +0000 Subject: refactor vCardCache --- examples/GuiClient/vCardCache.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'examples/GuiClient/vCardCache.cpp') diff --git a/examples/GuiClient/vCardCache.cpp b/examples/GuiClient/vCardCache.cpp index f5915bd1..9c0c18d0 100644 --- a/examples/GuiClient/vCardCache.cpp +++ b/examples/GuiClient/vCardCache.cpp @@ -42,11 +42,9 @@ vCardCache::vCardCache(QXmppClient* client) : QObject(client), void vCardCache::vCardReceived(const QXmppVCardIq& vcard) { QString from = vcard.from(); + if(from.isEmpty() && m_client) - { from = m_client->configuration().jidBare(); - m_selfFullName = vcard.fullName(); - } m_mapBareJidVcard[from] = vcard; @@ -126,11 +124,6 @@ void vCardCache::loadAllFromCache() } } -QString vCardCache::getSelfFullName() -{ - return m_selfFullName; -} - // this should return scaled image QImage vCardCache::getAvatar(const QString& bareJid) const { -- cgit v1.2.3