1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 19:14:06 +02: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 4d77074c78
commit bf0b104d27

View File

@@ -187,7 +187,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() );
} }