Skip to content

Commit

Permalink
If Query is null, return empty VariantMap
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Apr 18, 2014
1 parent e2daf82 commit be88e54
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/libtomahawk/PlaylistEntry.cpp
Expand Up @@ -56,7 +56,15 @@ QVariant
PlaylistEntry::queryVariant() const
{
Q_D( const PlaylistEntry );
return d->query->toVariant();

if ( d->query.isNull() )
{
return QVariantMap();
}
else
{
return d->query->toVariant();
}
}


Expand Down

0 comments on commit be88e54

Please sign in to comment.