1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 13:17:34 +02:00

Never cache null pixmaps.

This commit is contained in:
Christian Muehlhaeuser
2015-04-05 17:33:35 +02:00
parent a9440c6c96
commit 325d4ca67a

View File

@@ -431,6 +431,8 @@ Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) c
if ( !sourceIconCache()->contains( key ) )
{
QPixmap pixmap = resolver->icon( desiredSize );
if ( pixmap.isNull() )
return pixmap;
switch ( style )
{