1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Hook up to result's signals when we have a new top-result for a query in PlayableItem.

This commit is contained in:
Christian Muehlhaeuser 2015-03-11 05:21:08 +01:00
parent 8a20145806
commit 87cacb14bd

View File

@ -159,7 +159,10 @@ void
PlayableItem::onResultsChanged()
{
if ( m_query && !m_query->results().isEmpty() )
{
m_result = m_query->results().first();
connect( m_result.data(), SIGNAL( updated() ), SIGNAL( dataChanged() ), Qt::UniqueConnection );
}
else
m_result = result_ptr();