1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 18:14:50 +02:00

* Fixed retrieving covers from QPixmapCache.

This commit is contained in:
Christian Muehlhaeuser
2014-08-29 16:12:30 +02:00
parent f5a3b90544
commit a30c3fff88
2 changed files with 2 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ Album::cover( const QSize& size, bool forceLoad ) const
const QString cacheKey = QString( "%1_%2_%3" ).arg( infoid() ).arg( size.width() ).arg( size.height() );
QPixmap cover;
if ( !QPixmapCache::find( cacheKey, cover ) )
if ( !QPixmapCache::find( cacheKey, &cover ) )
{
cover = d->cover->scaled( size, Qt::KeepAspectRatio, Qt::SmoothTransformation );
QPixmapCache::insert( cacheKey, cover );

View File

@@ -629,7 +629,7 @@ Artist::cover( const QSize& size, bool forceLoad ) const
const QString cacheKey = QString( "%1_%2_%3" ).arg( infoid() ).arg( size.width() ).arg( size.height() );
QPixmap cover;
if ( !QPixmapCache::find( cacheKey, cover ) )
if ( !QPixmapCache::find( cacheKey, &cover ) )
{
cover = m_cover->scaled( size, Qt::KeepAspectRatio, Qt::SmoothTransformation );
QPixmapCache::insert( cacheKey, cover );