mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +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:
@@ -51,7 +51,8 @@ PixmapDelegateFader::PixmapDelegateFader( const artist_ptr& artist, const QSize&
|
|||||||
{
|
{
|
||||||
if ( !m_artist.isNull() )
|
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 );
|
m_currentReference = m_artist->cover( size, forceLoad );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +69,8 @@ PixmapDelegateFader::PixmapDelegateFader( const album_ptr& album, const QSize& s
|
|||||||
{
|
{
|
||||||
if ( !m_album.isNull() )
|
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 );
|
m_currentReference = m_album->cover( size, forceLoad );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +88,8 @@ PixmapDelegateFader::PixmapDelegateFader( const query_ptr& track, const QSize& s
|
|||||||
{
|
{
|
||||||
if ( !m_track.isNull() )
|
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 );
|
m_currentReference = m_track->cover( size, forceLoad );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user