1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

Check that we have a Query

This commit is contained in:
Uwe L. Korn 2014-08-22 18:47:32 +01:00
parent be5e82cb78
commit c21bd5a9db

View File

@ -171,7 +171,7 @@ PlayableItem::init( PlayableItem* parent, int row )
void
PlayableItem::onResultsChanged()
{
if ( !m_query->results().isEmpty() )
if ( m_query && !m_query->results().isEmpty() )
m_result = m_query->results().first();
else
m_result = result_ptr();