mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
don't call artist->cover more than we need to
This commit is contained in:
@@ -109,7 +109,7 @@ PixmapDelegateFader::init()
|
|||||||
void
|
void
|
||||||
PixmapDelegateFader::albumChanged()
|
PixmapDelegateFader::albumChanged()
|
||||||
{
|
{
|
||||||
if ( m_album.isNull() || m_album->cover( m_size ).isNull() )
|
if ( m_album.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setPixmap( m_album->cover( m_size ) );
|
setPixmap( m_album->cover( m_size ) );
|
||||||
@@ -118,7 +118,7 @@ PixmapDelegateFader::albumChanged()
|
|||||||
void
|
void
|
||||||
PixmapDelegateFader::artistChanged()
|
PixmapDelegateFader::artistChanged()
|
||||||
{
|
{
|
||||||
if ( m_artist.isNull() || m_artist->cover( m_size ).isNull() )
|
if ( m_artist.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setPixmap( m_artist->cover( m_size ) );
|
setPixmap( m_artist->cover( m_size ) );
|
||||||
@@ -128,7 +128,7 @@ PixmapDelegateFader::artistChanged()
|
|||||||
void
|
void
|
||||||
PixmapDelegateFader::trackChanged()
|
PixmapDelegateFader::trackChanged()
|
||||||
{
|
{
|
||||||
if ( m_track.isNull() || m_track->cover( m_size ).isNull() )
|
if ( m_track.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setPixmap( m_track->cover( m_size ) );
|
setPixmap( m_track->cover( m_size ) );
|
||||||
|
Reference in New Issue
Block a user