mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 18:30:20 +01:00
* Fixed cover loading in error case.
This commit is contained in:
parent
064efb4570
commit
bbec1dfbbe
@ -174,10 +174,14 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
||||
return;
|
||||
}
|
||||
|
||||
m_coverLoaded = true;
|
||||
|
||||
if ( !output.isNull() && output.isValid() )
|
||||
if ( output.isNull() )
|
||||
{
|
||||
m_coverLoaded = true;
|
||||
}
|
||||
else if ( output.isValid() )
|
||||
{
|
||||
m_coverLoaded = true;
|
||||
|
||||
QVariantMap returnedData = output.value< QVariantMap >();
|
||||
const QByteArray ba = returnedData["imgbytes"].toByteArray();
|
||||
if ( ba.length() )
|
||||
|
@ -315,9 +315,14 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
|
||||
|
||||
case Tomahawk::InfoSystem::InfoArtistImages:
|
||||
{
|
||||
m_coverLoaded = true;
|
||||
if ( !output.isNull() && output.isValid() )
|
||||
if ( output.isNull() )
|
||||
{
|
||||
m_coverLoaded = true;
|
||||
}
|
||||
else if ( output.isValid() )
|
||||
{
|
||||
m_coverLoaded = true;
|
||||
|
||||
const QByteArray ba = returnedData["imgbytes"].toByteArray();
|
||||
if ( ba.length() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user