mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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() )
|
||||
{
|
||||
m_coverBuffer = ba;
|
||||
|
||||
m_coverLoaded = true;
|
||||
emit coverChanged();
|
||||
}
|
||||
}
|
||||
@@ -200,7 +200,8 @@ Album::infoSystemFinished( const QString& target )
|
||||
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
||||
this, SLOT( infoSystemFinished( QString ) ) );
|
||||
|
||||
m_coverLoaded = true;
|
||||
m_coverLoading = false;
|
||||
|
||||
emit updated();
|
||||
}
|
||||
|
||||
|
@@ -382,6 +382,8 @@ Artist::infoSystemFinished( QString target )
|
||||
this, SLOT( infoSystemFinished( QString ) ) );
|
||||
}
|
||||
|
||||
m_coverLoading = false;
|
||||
|
||||
emit updated();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user