1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Don't try to load covers for name-less albums.

This commit is contained in:
Christian Muehlhaeuser
2012-12-23 11:58:00 +01:00
parent af79919485
commit b90805234d
2 changed files with 7 additions and 2 deletions

View File

@@ -200,6 +200,12 @@ Album::id() const
QPixmap
Album::cover( const QSize& size, bool forceLoad ) const
{
if ( name().isEmpty() )
{
m_coverLoaded = true;
return QPixmap();
}
if ( !m_coverLoaded && !m_coverLoading )
{
if ( !forceLoad )
@@ -299,7 +305,6 @@ Album::infoSystemFinished( const QString& target )
this, SLOT( infoSystemFinished( QString ) ) );
m_coverLoading = false;
emit updated();
}

View File

@@ -94,7 +94,7 @@ private:
artist_ptr m_artist;
bool m_coverLoaded;
mutable bool m_coverLoaded;
mutable bool m_coverLoading;
mutable QString m_uuid;