mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Guard against null sharedptr that shouldn't be null anyway -.-
This commit is contained in:
@@ -170,7 +170,7 @@ Result::toVariant() const
|
|||||||
QString
|
QString
|
||||||
Result::toString() const
|
Result::toString() const
|
||||||
{
|
{
|
||||||
return QString( "Result(%1 %2\t%3 - %4 %5" ).arg( id() ).arg( score() ).arg( artist()->name() ).arg( track() ).arg( url() );
|
return QString( "Result(%1 %2\t%3 - %4 %5" ).arg( id() ).arg( score() ).arg( artist().isNull() ? QString() : artist()->name() ).arg( track() ).arg( url() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user