mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
* Emit coverChanged() even when we couldn't get a cover, so the views update / trigger new requests.
This commit is contained in:
@@ -180,15 +180,15 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
|||||||
}
|
}
|
||||||
else if ( output.isValid() )
|
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() )
|
||||||
{
|
{
|
||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
emit coverChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_coverLoaded = true;
|
||||||
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -321,14 +321,14 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
|
|||||||
}
|
}
|
||||||
else if ( output.isValid() )
|
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() )
|
||||||
{
|
{
|
||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
emit coverChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_coverLoaded = true;
|
||||||
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user