mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
* Fixed crasher in Result::toVariant().
This commit is contained in:
parent
ad2bdcc300
commit
61a3e3a815
@ -94,7 +94,12 @@ Result::toVariant() const
|
||||
m.insert( "artist", artist()->name() );
|
||||
m.insert( "album", album()->name() );
|
||||
m.insert( "track", track() );
|
||||
m.insert( "source", collection()->source()->friendlyName() );
|
||||
|
||||
if ( !collection().isNull() )
|
||||
m.insert( "source", collection()->source()->friendlyName() );
|
||||
else
|
||||
m.insert( "source", friendlySource() );
|
||||
|
||||
m.insert( "mimetype", mimetype() );
|
||||
m.insert( "size", size() );
|
||||
m.insert( "bitrate", bitrate() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user