From 7946362dcf51f8dfe682eb066ad9560ee5d815b4 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 1 Jul 2012 05:43:29 +0200 Subject: [PATCH] * Set m_coverLoaded to true even when we couldn't find any image. --- src/libtomahawk/Album.cpp | 4 ++-- src/libtomahawk/Artist.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/Album.cpp b/src/libtomahawk/Album.cpp index b3f760076..48b2b6166 100644 --- a/src/libtomahawk/Album.cpp +++ b/src/libtomahawk/Album.cpp @@ -174,10 +174,10 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData, return; } + m_coverLoaded = true; + if ( !output.isNull() && output.isValid() ) { - m_coverLoaded = true; - QVariantMap returnedData = output.value< QVariantMap >(); const QByteArray ba = returnedData["imgbytes"].toByteArray(); if ( ba.length() ) diff --git a/src/libtomahawk/Artist.cpp b/src/libtomahawk/Artist.cpp index b18a03215..ebcbcb526 100644 --- a/src/libtomahawk/Artist.cpp +++ b/src/libtomahawk/Artist.cpp @@ -315,10 +315,9 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari case Tomahawk::InfoSystem::InfoArtistImages: { + m_coverLoaded = true; if ( !output.isNull() && output.isValid() ) { - m_coverLoaded = true; - const QByteArray ba = returnedData["imgbytes"].toByteArray(); if ( ba.length() ) {