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:
parent
8a20145806
commit
87cacb14bd
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user