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

Guard against null sharedptr that shouldn't be null anyway -.-

This commit is contained in:
Leo Franchi 2012-03-19 21:25:38 -04:00
parent 66836ae0bd
commit 27147a0140

View File

@ -170,7 +170,7 @@ Result::toVariant() const
QString
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() );
}