1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01:00

* Emit coverChanged() even when we couldn't get a cover, so the views update / trigger new requests.

This commit is contained in:
Christian Muehlhaeuser 2012-07-02 03:49:24 +02:00
parent 558b902b62
commit a1b24c1244
2 changed files with 6 additions and 6 deletions
src/libtomahawk

@ -180,15 +180,15 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
}
else if ( output.isValid() )
{
m_coverLoaded = true;
QVariantMap returnedData = output.value< QVariantMap >();
const QByteArray ba = returnedData["imgbytes"].toByteArray();
if ( ba.length() )
{
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() )
{
m_coverLoaded = true;
const QByteArray ba = returnedData["imgbytes"].toByteArray();
if ( ba.length() )
{
m_coverBuffer = ba;
emit coverChanged();
}
m_coverLoaded = true;
emit coverChanged();
}
break;