aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/vCardCache.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 11:08:37 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 11:08:37 +0000
commit1a5119d7aa3c1ba765e45de71287ab6d125c5767 (patch)
tree00c517b327c90243c54a70ee882d74cd585c7893 /examples/GuiClient/vCardCache.cpp
parent081ee70d43476e7bb4cc3f3d0cff3d20da05d08e (diff)
downloadqxmpp-1a5119d7aa3c1ba765e45de71287ab6d125c5767.tar.gz
bugfix: save only the given bareJid's vCard
Diffstat (limited to 'examples/GuiClient/vCardCache.cpp')
-rw-r--r--examples/GuiClient/vCardCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/GuiClient/vCardCache.cpp b/examples/GuiClient/vCardCache.cpp
index 858edd5d..f5915bd1 100644
--- a/examples/GuiClient/vCardCache.cpp
+++ b/examples/GuiClient/vCardCache.cpp
@@ -82,7 +82,7 @@ void vCardCache::saveToCache(const QString& bareJid)
if(!dir2.exists(getSettingsDir(m_client->configuration().jidBare())+ "vCards/"))
dir2.mkpath(getSettingsDir(m_client->configuration().jidBare())+ "vCards/");
- foreach(QString bareJid, m_mapBareJidVcard.keys())
+ if(m_mapBareJidVcard.contains(bareJid))
{
QString fileVCard = getSettingsDir(m_client->configuration().jidBare()) + "vCards/" + bareJid + ".xml";
QFile file(fileVCard);