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

* Fixed TWK-670: Don't crash without a composer.

This commit is contained in:
Christian Muehlhaeuser 2012-02-03 17:09:44 +01:00
parent 52531e9125
commit c9b1daeba7

View File

@ -159,7 +159,9 @@ Result::toVariant() const
m.insert( "score", score() );
m.insert( "sid", id() );
m.insert( "discnumber", discnumber() );
m.insert( "composer", composer()->name() );
if ( !composer().isNull() )
m.insert( "composer", composer()->name() );
return m;
}