1
0
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:
Christian Muehlhaeuser
2012-06-12 08:41:10 +02:00
parent 82febe8da3
commit d0a8f2d1b9
2 changed files with 5 additions and 2 deletions

View File

@@ -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();
} }

View File

@@ -382,6 +382,8 @@ Artist::infoSystemFinished( QString target )
this, SLOT( infoSystemFinished( QString ) ) ); this, SLOT( infoSystemFinished( QString ) ) );
} }
m_coverLoading = false;
emit updated(); emit updated();
} }