mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 01:24:11 +02:00
If Query is null, return empty VariantMap
This commit is contained in:
@@ -56,8 +56,16 @@ QVariant
|
||||
PlaylistEntry::queryVariant() const
|
||||
{
|
||||
Q_D( const PlaylistEntry );
|
||||
|
||||
if ( d->query.isNull() )
|
||||
{
|
||||
return QVariantMap();
|
||||
}
|
||||
else
|
||||
{
|
||||
return d->query->toVariant();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user