mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Prevent another plugin from adding empty tracks.
This commit is contained in:
@@ -168,7 +168,7 @@ DiscogsPlugin::albumInfoSlot( const InfoRequestData& requestData, QNetworkReply*
|
|||||||
foreach ( const QVariant& v, release[ "tracklist" ].toList() )
|
foreach ( const QVariant& v, release[ "tracklist" ].toList() )
|
||||||
{
|
{
|
||||||
const QVariantMap track = v.toMap();
|
const QVariantMap track = v.toMap();
|
||||||
if ( track.contains( "title" ) )
|
if ( track.contains( "title" ) && !track[ "title" ].toString().isEmpty() )
|
||||||
trackNameList << track[ "title" ].toString();
|
trackNameList << track[ "title" ].toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user