diff options
Diffstat (limited to 'examples/GuiClient/vCardCache.cpp')
| -rw-r--r-- | examples/GuiClient/vCardCache.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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 { |
