mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Check that we have a Query
This commit is contained in:
@@ -171,7 +171,7 @@ PlayableItem::init( PlayableItem* parent, int row )
|
|||||||
void
|
void
|
||||||
PlayableItem::onResultsChanged()
|
PlayableItem::onResultsChanged()
|
||||||
{
|
{
|
||||||
if ( !m_query->results().isEmpty() )
|
if ( m_query && !m_query->results().isEmpty() )
|
||||||
m_result = m_query->results().first();
|
m_result = m_query->results().first();
|
||||||
else
|
else
|
||||||
m_result = result_ptr();
|
m_result = result_ptr();
|
||||||
|
Reference in New Issue
Block a user