mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
Never cache null pixmaps.
This commit is contained in:
parent
a9440c6c96
commit
325d4ca67a
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user