mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Safer cover loading for Artists & Albums.
This commit is contained in:
@@ -181,7 +181,7 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
|||||||
if ( ba.length() )
|
if ( ba.length() )
|
||||||
{
|
{
|
||||||
m_coverBuffer = ba;
|
m_coverBuffer = ba;
|
||||||
|
m_coverLoaded = true;
|
||||||
emit coverChanged();
|
emit coverChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -200,7 +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 ) ) );
|
||||||
|
|
||||||
m_coverLoaded = true;
|
m_coverLoading = false;
|
||||||
|
|
||||||
emit updated();
|
emit updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -382,6 +382,8 @@ Artist::infoSystemFinished( QString target )
|
|||||||
this, SLOT( infoSystemFinished( QString ) ) );
|
this, SLOT( infoSystemFinished( QString ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_coverLoading = false;
|
||||||
|
|
||||||
emit updated();
|
emit updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user