mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
connect also to resultsChanged
This commit is contained in:
@@ -152,9 +152,13 @@ PlayableItem::init( PlayableItem* parent, int row )
|
|||||||
void
|
void
|
||||||
PlayableItem::onResultsChanged()
|
PlayableItem::onResultsChanged()
|
||||||
{
|
{
|
||||||
if ( !m_query->results().isEmpty() )
|
if ( !m_query->results().isEmpty() ) {
|
||||||
m_result = m_query->results().first();
|
m_result = m_query->results().first();
|
||||||
else
|
if ( m_query->displayQuery()->coverLoaded() ) {
|
||||||
|
emit coverChanged();
|
||||||
|
}
|
||||||
|
connect( m_query->displayQuery().data(), SIGNAL( coverChanged() ), SIGNAL( coverChanged() ) );
|
||||||
|
} else
|
||||||
m_result = result_ptr();
|
m_result = result_ptr();
|
||||||
|
|
||||||
emit dataChanged();
|
emit dataChanged();
|
||||||
|
Reference in New Issue
Block a user