mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Fixed duplicate tracks. But why do they happen?
This commit is contained in:
@@ -257,6 +257,10 @@ AlbumPlaylistInterface::infoSystemFinished( const QString& infoId )
|
|||||||
void
|
void
|
||||||
AlbumPlaylistInterface::onTracksLoaded( const QList< query_ptr >& tracks )
|
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() )
|
if ( m_collection.isNull() )
|
||||||
{
|
{
|
||||||
m_databaseLoaded = true;
|
m_databaseLoaded = true;
|
||||||
|
Reference in New Issue
Block a user