mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Replace stupid fix for track dupes in ScriptCollection with a real one.
This commit is contained in:
parent
4777a64ce7
commit
c6cb208e19
@ -257,10 +257,9 @@ 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;
|
||||
disconnect( m_collection.data(), SIGNAL( tracksResult( QList< Tomahawk::query_ptr > ) ),
|
||||
this, SLOT( onTracksLoaded( QList< Tomahawk::query_ptr > ) ) );
|
||||
|
||||
if ( m_collection.isNull() )
|
||||
{
|
||||
m_databaseLoaded = true;
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "Source.h"
|
||||
#include "ExternalResolverGui.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <QIcon>
|
||||
#include <QPainter>
|
||||
@ -145,5 +146,6 @@ ScriptCollection::onAlbumsFetched( const QList<album_ptr>& albums )
|
||||
void
|
||||
ScriptCollection::onTracksFetched( const QList<query_ptr>& tracks )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "About to emit tracksResult";
|
||||
emit tracksResult( tracks );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user