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() ) {