1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 20:41:58 +02:00

* Also update cover when the updated() signal is emitted. This happens when we couldn't retrieve any cover.

This commit is contained in:
Christian Muehlhaeuser 2012-05-05 16:39:32 +02:00
parent fc9a36e28e
commit f59bbc111f

View File

@ -51,7 +51,8 @@ PixmapDelegateFader::PixmapDelegateFader( const artist_ptr& artist, const QSize&
{
if ( !m_artist.isNull() )
{
connect( m_artist.data(), SIGNAL( coverChanged() ), this, SLOT( artistChanged() ) );
connect( m_artist.data(), SIGNAL( updated() ), SLOT( trackChanged() ) );
connect( m_artist.data(), SIGNAL( coverChanged() ), SLOT( artistChanged() ) );
m_currentReference = m_artist->cover( size, forceLoad );
}
@ -68,7 +69,8 @@ PixmapDelegateFader::PixmapDelegateFader( const album_ptr& album, const QSize& s
{
if ( !m_album.isNull() )
{
connect( m_album.data(), SIGNAL( coverChanged() ), this, SLOT( albumChanged() ) );
connect( m_album.data(), SIGNAL( updated() ), SLOT( trackChanged() ) );
connect( m_album.data(), SIGNAL( coverChanged() ), SLOT( albumChanged() ) );
m_currentReference = m_album->cover( size, forceLoad );
}
@ -86,7 +88,8 @@ PixmapDelegateFader::PixmapDelegateFader( const query_ptr& track, const QSize& s
{
if ( !m_track.isNull() )
{
connect( m_track.data(), SIGNAL( coverChanged() ), this, SLOT( trackChanged() ) );
connect( m_track.data(), SIGNAL( updated() ), SLOT( trackChanged() ) );
connect( m_track.data(), SIGNAL( coverChanged() ), SLOT( trackChanged() ) );
m_currentReference = m_track->cover( size, forceLoad );
}