mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +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:
@@ -159,7 +159,10 @@ void
|
|||||||
PlayableItem::onResultsChanged()
|
PlayableItem::onResultsChanged()
|
||||||
{
|
{
|
||||||
if ( m_query && !m_query->results().isEmpty() )
|
if ( m_query && !m_query->results().isEmpty() )
|
||||||
|
{
|
||||||
m_result = m_query->results().first();
|
m_result = m_query->results().first();
|
||||||
|
connect( m_result.data(), SIGNAL( updated() ), SIGNAL( dataChanged() ), Qt::UniqueConnection );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m_result = result_ptr();
|
m_result = result_ptr();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user