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