mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Fixed avatar caching going bonkers.
This commit is contained in:
@@ -310,7 +310,7 @@ PeerInfo::setAvatar( const QPixmap& avatar )
|
|||||||
m_avatar = 0;
|
m_avatar = 0;
|
||||||
m_fancyAvatar = 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_avatar )
|
||||||
{
|
{
|
||||||
if ( m_avatarBuffer.isEmpty() )
|
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();
|
m_avatar = new QPixmap();
|
||||||
if ( !m_avatarBuffer.isEmpty() )
|
if ( !m_avatarBuffer.isEmpty() )
|
||||||
|
Reference in New Issue
Block a user