1
0
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:
Leo Franchi
2012-04-06 16:47:36 -04:00
parent 2a6a4c0252
commit 9d88f16aa4

View File

@@ -109,7 +109,7 @@ PixmapDelegateFader::init()
void
PixmapDelegateFader::albumChanged()
{
if ( m_album.isNull() || m_album->cover( m_size ).isNull() )
if ( m_album.isNull() )
return;
setPixmap( m_album->cover( m_size ) );
@@ -118,7 +118,7 @@ PixmapDelegateFader::albumChanged()
void
PixmapDelegateFader::artistChanged()
{
if ( m_artist.isNull() || m_artist->cover( m_size ).isNull() )
if ( m_artist.isNull() )
return;
setPixmap( m_artist->cover( m_size ) );
@@ -128,7 +128,7 @@ PixmapDelegateFader::artistChanged()
void
PixmapDelegateFader::trackChanged()
{
if ( m_track.isNull() || m_track->cover( m_size ).isNull() )
if ( m_track.isNull() )
return;
setPixmap( m_track->cover( m_size ) );