1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Revert "Be a bit smarter about when we consider info loaded and updated"

This reverts commit 0c308b850d8bb7715cb1806e062529eccc87f664.
This commit is contained in:
Jeff Mitchell 2012-04-06 17:17:43 -04:00
parent 0c308b850d
commit 2a6a4c0252
2 changed files with 5 additions and 8 deletions

View File

@ -174,13 +174,12 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
return;
}
if ( !output.isNull() && output.isValid() && !m_infoLoaded )
if ( !output.isNull() && output.isValid() )
{
QVariantMap returnedData = output.value< QVariantMap >();
const QByteArray ba = returnedData["imgbytes"].toByteArray();
if ( ba.length() )
{
m_infoLoaded = true;
m_coverBuffer = ba;
emit coverChanged();
@ -201,8 +200,8 @@ Album::infoSystemFinished( const QString& target )
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
this, SLOT( infoSystemFinished( QString ) ) );
if ( m_infoLoaded )
emit updated();
m_infoLoaded = true;
emit updated();
}

View File

@ -170,9 +170,7 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
const QByteArray ba = returnedData["imgbytes"].toByteArray();
if ( ba.length() )
{
m_infoLoaded = true;
m_coverBuffer = ba;
emit coverChanged();
}
}
@ -193,8 +191,8 @@ Artist::infoSystemFinished( QString target )
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
this, SLOT( infoSystemFinished( QString ) ) );
if ( m_infoLoaded )
emit updated();
m_infoLoaded = true;
emit updated();
}