mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
* Set m_coverLoaded to true before emitting the coverChanged signal.
This commit is contained in:
@@ -176,6 +176,8 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
|||||||
|
|
||||||
if ( !output.isNull() && output.isValid() )
|
if ( !output.isNull() && 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() )
|
||||||
@@ -183,8 +185,6 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
|||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
emit coverChanged();
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_coverLoaded = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -317,14 +317,14 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
|
|||||||
{
|
{
|
||||||
if ( !output.isNull() && output.isValid() )
|
if ( !output.isNull() && 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();
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_coverLoaded = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user