mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +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
|
QPixmap
|
||||||
Album::cover( const QSize& size, bool forceLoad ) const
|
Album::cover( const QSize& size, bool forceLoad ) const
|
||||||
{
|
{
|
||||||
|
if ( name().isEmpty() )
|
||||||
|
{
|
||||||
|
m_coverLoaded = true;
|
||||||
|
return QPixmap();
|
||||||
|
}
|
||||||
|
|
||||||
if ( !m_coverLoaded && !m_coverLoading )
|
if ( !m_coverLoaded && !m_coverLoading )
|
||||||
{
|
{
|
||||||
if ( !forceLoad )
|
if ( !forceLoad )
|
||||||
@@ -299,7 +305,6 @@ Album::infoSystemFinished( const QString& target )
|
|||||||
this, SLOT( infoSystemFinished( QString ) ) );
|
this, SLOT( infoSystemFinished( QString ) ) );
|
||||||
|
|
||||||
m_coverLoading = false;
|
m_coverLoading = false;
|
||||||
|
|
||||||
emit updated();
|
emit updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -94,7 +94,7 @@ private:
|
|||||||
|
|
||||||
artist_ptr m_artist;
|
artist_ptr m_artist;
|
||||||
|
|
||||||
bool m_coverLoaded;
|
mutable bool m_coverLoaded;
|
||||||
mutable bool m_coverLoading;
|
mutable bool m_coverLoading;
|
||||||
mutable QString m_uuid;
|
mutable QString m_uuid;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user