Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't call artist->cover more than we need to

  • Loading branch information...
commit 9d88f16aa4e05615822b1a662992c1d56d8bbc2d 1 parent 2a6a4c0
@lfranchi lfranchi authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/libtomahawk/utils/PixmapDelegateFader.cpp
View
6 src/libtomahawk/utils/PixmapDelegateFader.cpp
@@ -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 ) );
Please sign in to comment.
Something went wrong with that request. Please try again.