1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 15:47:38 +02:00

* Fixed DropJob's query counter as discussed on GitHub.

This commit is contained in:
Christian Muehlhaeuser
2011-12-05 07:53:36 +01:00
parent 3517726d92
commit 2c83807efc

View File

@@ -464,10 +464,9 @@ DropJob::handleM3u( const QString& fileUrls )
{ {
tDebug() << Q_FUNC_INFO << "Trying to append contents from" << urls; tDebug() << Q_FUNC_INFO << "Trying to append contents from" << urls;
connect( m, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) ); connect( m, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) );
m_queryCount++;
} }
m->parse(); m->parse();
m_queryCount++;
} }
@@ -508,9 +507,8 @@ DropJob::handleXspfs( const QString& fileUrls )
{ {
qDebug() << Q_FUNC_INFO << "Trying to append XSPF"; qDebug() << Q_FUNC_INFO << "Trying to append XSPF";
connect( l, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) ); connect( l, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) );
m_queryCount++;
} }
m_queryCount++;
} }
} }
@@ -535,9 +533,8 @@ DropJob::handleSpotifyUrls( const QString& urlsRaw )
{ {
tDebug() << Q_FUNC_INFO << "Asking for spotify browse contents from" << urls; tDebug() << Q_FUNC_INFO << "Asking for spotify browse contents from" << urls;
connect( spot, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) ); connect( spot, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( onTracksAdded( QList< Tomahawk::query_ptr > ) ) );
m_queryCount++;
} }
m_queryCount++;
} }
@@ -731,7 +728,7 @@ DropJob::getArtist( const QString &artist )
if ( artistPtr->tracks().isEmpty() ) if ( artistPtr->tracks().isEmpty() )
{ {
connect( artistPtr.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr> ) ), connect( artistPtr.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr> ) ),
SLOT( onTracksAdded( QList<Tomahawk::query_ptr> ) ) ); SLOT( onTracksAdded( QList<Tomahawk::query_ptr> ) ) );
m_queryCount++; m_queryCount++;
return QList< query_ptr >(); return QList< query_ptr >();
} }
@@ -753,7 +750,7 @@ DropJob::getAlbum(const QString &artist, const QString &album)
{ {
m_dropJob = new DropJobNotifier( QPixmap( RESPATH "images/album-icon.png" ), Album ); m_dropJob = new DropJobNotifier( QPixmap( RESPATH "images/album-icon.png" ), Album );
connect( albumPtr.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr> ) ), connect( albumPtr.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr> ) ),
SLOT( onTracksAdded( QList<Tomahawk::query_ptr> ) ) ); SLOT( onTracksAdded( QList<Tomahawk::query_ptr> ) ) );
JobStatusView::instance()->model()->addJob( m_dropJob ); JobStatusView::instance()->model()->addJob( m_dropJob );
m_queryCount++; m_queryCount++;