diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/GuiClient/vCardCache.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/GuiClient/vCardCache.cpp b/examples/GuiClient/vCardCache.cpp index 49396f35..a9158ca1 100644 --- a/examples/GuiClient/vCardCache.cpp +++ b/examples/GuiClient/vCardCache.cpp @@ -135,6 +135,9 @@ QImage vCardCache::getAvatar(const QString& bareJid) const QByteArray vCardCache::getPhotoHash(const QString& bareJid) const { - return QCryptographicHash::hash(m_mapBareJidVcard[bareJid].photo(), + if(m_mapBareJidVcard[bareJid].photo().isEmpty()) + return QByteArray(); + else + return QCryptographicHash::hash(m_mapBareJidVcard[bareJid].photo(), QCryptographicHash::Sha1); } |
