From 6c19cf7bd1f87f8a2418ec1c97543a85d2977bca Mon Sep 17 00:00:00 2001
From: Christian Muehlhaeuser <muesli@gmail.com>
Date: Thu, 18 Apr 2013 16:22:08 +0200
Subject: [PATCH] * Fixed avatar caching going bonkers.

---
 src/libtomahawk/sip/PeerInfo.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libtomahawk/sip/PeerInfo.cpp b/src/libtomahawk/sip/PeerInfo.cpp
index 0eec5a3fa..9e24657f5 100644
--- a/src/libtomahawk/sip/PeerInfo.cpp
+++ b/src/libtomahawk/sip/PeerInfo.cpp
@@ -310,7 +310,7 @@ PeerInfo::setAvatar( const QPixmap& avatar )
     m_avatar = 0;
     m_fancyAvatar = 0;
 
-    TomahawkUtils::Cache::instance()->putData( "Sources", 7776000000 /* 90 days */, id(), ba );
+    TomahawkUtils::Cache::instance()->putData( "Sources", 7776000000 /* 90 days */, contactId(), ba );
 }
 
 
@@ -320,7 +320,7 @@ PeerInfo::avatar( TomahawkUtils::ImageMode style, const QSize& size ) const
     if ( !m_avatar )
     {
         if ( m_avatarBuffer.isEmpty() )
-            m_avatarBuffer = TomahawkUtils::Cache::instance()->getData( "Sources", id() ).toByteArray();
+            m_avatarBuffer = TomahawkUtils::Cache::instance()->getData( "Sources", contactId() ).toByteArray();
 
         m_avatar = new QPixmap();
         if ( !m_avatarBuffer.isEmpty() )