mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
Replace stupid fix for track dupes in ScriptCollection with a real one.
This commit is contained in:
@@ -257,10 +257,9 @@ AlbumPlaylistInterface::infoSystemFinished( const QString& infoId )
|
|||||||
void
|
void
|
||||||
AlbumPlaylistInterface::onTracksLoaded( const QList< query_ptr >& tracks )
|
AlbumPlaylistInterface::onTracksLoaded( const QList< query_ptr >& tracks )
|
||||||
{
|
{
|
||||||
if ( !tracks.isEmpty() &&
|
disconnect( m_collection.data(), SIGNAL( tracksResult( QList< Tomahawk::query_ptr > ) ),
|
||||||
( tracks.first()->artist() != m_album->artist()->name() ||
|
this, SLOT( onTracksLoaded( QList< Tomahawk::query_ptr > ) ) );
|
||||||
tracks.first()->album() != m_album->name() ) )
|
|
||||||
return;
|
|
||||||
if ( m_collection.isNull() )
|
if ( m_collection.isNull() )
|
||||||
{
|
{
|
||||||
m_databaseLoaded = true;
|
m_databaseLoaded = true;
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
#include "ExternalResolverGui.h"
|
#include "ExternalResolverGui.h"
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
@@ -145,5 +146,6 @@ ScriptCollection::onAlbumsFetched( const QList<album_ptr>& albums )
|
|||||||
void
|
void
|
||||||
ScriptCollection::onTracksFetched( const QList<query_ptr>& tracks )
|
ScriptCollection::onTracksFetched( const QList<query_ptr>& tracks )
|
||||||
{
|
{
|
||||||
|
tDebug() << Q_FUNC_INFO << "About to emit tracksResult";
|
||||||
emit tracksResult( tracks );
|
emit tracksResult( tracks );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user