From 325d4ca67aac8dcf11ca9010189dd039d67c11cc Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 5 Apr 2015 17:33:35 +0200 Subject: [PATCH] Never cache null pixmaps. --- src/libtomahawk/Result.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtomahawk/Result.cpp b/src/libtomahawk/Result.cpp index 97ad79a82..c9bdc8559 100644 --- a/src/libtomahawk/Result.cpp +++ b/src/libtomahawk/Result.cpp @@ -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 ) {