From c95c19c3c596c4e3190563f97e47b1ba4a481e96 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Wed, 19 Mar 2014 19:48:20 +0000 Subject: [PATCH] Dont insert dummy entry twice --- gui/covers.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gui/covers.cpp b/gui/covers.cpp index 5fe8dff60..81a2c09ae 100644 --- a/gui/covers.cpp +++ b/gui/covers.cpp @@ -1043,15 +1043,9 @@ QPixmap * Covers::get(const Song &song, int size) pix=saveScaledCover(img.scaled(size, size, Qt::KeepAspectRatio, Qt::SmoothTransformation), song.albumArtist(), song.album, size); } - if (!pix) { + if (!pix && Song::OnlineSvrTrack!=song.type) { // Attempt to download cover... - if (Song::OnlineSvrTrack!=song.type) { - tryToDownload(song); - } - // Create a dummy pixmap so that we dont keep on stating files that do not exist! - pix=new QPixmap(1, 1); - cache.insert(cacheKey(song, size), pix, 4); - cacheSizes.insert(size); + tryToDownload(song); } }