From a30c3fff88886c6d492c3bfcb7b102282f96e122 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 29 Aug 2014 16:12:30 +0200 Subject: [PATCH] * Fixed retrieving covers from QPixmapCache. --- src/libtomahawk/Album.cpp | 2 +- src/libtomahawk/Artist.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/Album.cpp b/src/libtomahawk/Album.cpp index d3e8b1c3a..e44ffec45 100644 --- a/src/libtomahawk/Album.cpp +++ b/src/libtomahawk/Album.cpp @@ -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 ); diff --git a/src/libtomahawk/Artist.cpp b/src/libtomahawk/Artist.cpp index ebcc279b6..7b222ad7e 100644 --- a/src/libtomahawk/Artist.cpp +++ b/src/libtomahawk/Artist.cpp @@ -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 );