mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
Revert "Be a bit smarter about when we consider info loaded and updated"
This reverts commit 0c308b850d
.
This commit is contained in:
@@ -174,13 +174,12 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !output.isNull() && output.isValid() && !m_infoLoaded )
|
if ( !output.isNull() && output.isValid() )
|
||||||
{
|
{
|
||||||
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_infoLoaded = true;
|
|
||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
|
|
||||||
emit coverChanged();
|
emit coverChanged();
|
||||||
@@ -201,8 +200,8 @@ Album::infoSystemFinished( const QString& target )
|
|||||||
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
||||||
this, SLOT( infoSystemFinished( QString ) ) );
|
this, SLOT( infoSystemFinished( QString ) ) );
|
||||||
|
|
||||||
if ( m_infoLoaded )
|
m_infoLoaded = true;
|
||||||
emit updated();
|
emit updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -170,9 +170,7 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
|
|||||||
const QByteArray ba = returnedData["imgbytes"].toByteArray();
|
const QByteArray ba = returnedData["imgbytes"].toByteArray();
|
||||||
if ( ba.length() )
|
if ( ba.length() )
|
||||||
{
|
{
|
||||||
m_infoLoaded = true;
|
|
||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
|
|
||||||
emit coverChanged();
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,8 +191,8 @@ Artist::infoSystemFinished( QString target )
|
|||||||
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
||||||
this, SLOT( infoSystemFinished( QString ) ) );
|
this, SLOT( infoSystemFinished( QString ) ) );
|
||||||
|
|
||||||
if ( m_infoLoaded )
|
m_infoLoaded = true;
|
||||||
emit updated();
|
emit updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user