1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 02:54:33 +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 7580d15913
commit a7efeb7dc2

View File

@@ -156,7 +156,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();