mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Don't try to load covers for name-less albums.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -94,7 +94,7 @@ private:
|
||||
|
||||
artist_ptr m_artist;
|
||||
|
||||
bool m_coverLoaded;
|
||||
mutable bool m_coverLoaded;
|
||||
mutable bool m_coverLoading;
|
||||
mutable QString m_uuid;
|
||||
|
||||
|
Reference in New Issue
Block a user