mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
Never cache null pixmaps.
This commit is contained in:
@@ -431,6 +431,8 @@ Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) c
|
|||||||
if ( !sourceIconCache()->contains( key ) )
|
if ( !sourceIconCache()->contains( key ) )
|
||||||
{
|
{
|
||||||
QPixmap pixmap = resolver->icon( desiredSize );
|
QPixmap pixmap = resolver->icon( desiredSize );
|
||||||
|
if ( pixmap.isNull() )
|
||||||
|
return pixmap;
|
||||||
|
|
||||||
switch ( style )
|
switch ( style )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user