1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 02:24:50 +02:00

* No need to hook up to query's coverChanged() signal anymore.

This commit is contained in:
Christian Muehlhaeuser
2012-07-06 03:40:50 +02:00
parent 56dd8d47db
commit 56e73fb274

View File

@@ -100,9 +100,6 @@ PlayableItem::PlayableItem( const Tomahawk::query_ptr& query, PlayableItem* pare
connect( query.data(), SIGNAL( resultsChanged() ), connect( query.data(), SIGNAL( resultsChanged() ),
SLOT( onResultsChanged() ) ); SLOT( onResultsChanged() ) );
connect( query.data(), SIGNAL( coverChanged() ),
SIGNAL( coverChanged() ) );
connect( query->displayQuery().data(), SIGNAL( coverChanged() ), connect( query->displayQuery().data(), SIGNAL( coverChanged() ),
SIGNAL( coverChanged() ) ); SIGNAL( coverChanged() ) );
} }
@@ -130,9 +127,6 @@ PlayableItem::PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* pa
connect( m_query.data(), SIGNAL( resultsChanged() ), connect( m_query.data(), SIGNAL( resultsChanged() ),
SLOT( onResultsChanged() ) ); SLOT( onResultsChanged() ) );
connect( m_query.data(), SIGNAL( coverChanged() ),
SIGNAL( coverChanged() ) );
connect( m_query->displayQuery().data(), SIGNAL( coverChanged() ), connect( m_query->displayQuery().data(), SIGNAL( coverChanged() ),
SIGNAL( coverChanged() ) ); SIGNAL( coverChanged() ) );
} }
@@ -144,7 +138,7 @@ PlayableItem::init( PlayableItem* parent, int row )
m_fetchingMore = false; m_fetchingMore = false;
m_isPlaying = false; m_isPlaying = false;
m_parent = parent; m_parent = parent;
if ( parent ) if ( parent )
{ {
if ( row < 0 ) if ( row < 0 )
@@ -159,7 +153,7 @@ PlayableItem::init( PlayableItem* parent, int row )
this->model = parent->model; this->model = parent->model;
} }
if ( !m_query.isNull() ) if ( !m_query.isNull() )
{ {
onResultsChanged(); onResultsChanged();