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

Fixed duplicate tracks. But why do they happen?

This commit is contained in:
Teo Mrnjavac 2013-01-28 13:29:33 +01:00
parent 4a2fd14d70
commit 4777a64ce7

View File

@ -257,6 +257,10 @@ AlbumPlaylistInterface::infoSystemFinished( const QString& infoId )
void
AlbumPlaylistInterface::onTracksLoaded( const QList< query_ptr >& tracks )
{
if ( !tracks.isEmpty() &&
( tracks.first()->artist() != m_album->artist()->name() ||
tracks.first()->album() != m_album->name() ) )
return;
if ( m_collection.isNull() )
{
m_databaseLoaded = true;