1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

* Call startLoading() before dispatching to the resolver.

This commit is contained in:
Christian Muehlhaeuser 2013-09-05 11:00:15 +02:00
parent 354805b7b4
commit 1d3770eccf

View File

@ -311,8 +311,8 @@ PlaylistModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int
if ( !d->waitingForResolved.isEmpty() )
{
startLoading();
Pipeline::instance()->resolve( queries );
emit loadingStarted();
}
else
finishLoading();
@ -341,7 +341,7 @@ PlaylistModel::trackResolved( bool )
if ( d->waitingForResolved.isEmpty() )
{
emit loadingFinished();
finishLoading();
}
}
@ -579,7 +579,7 @@ PlaylistModel::removeIndex( const QModelIndex& index, bool moreToCome )
disconnect( item->query().data(), SIGNAL( resolvingFinished( bool ) ), this, SLOT( trackResolved( bool ) ) );
d->waitingForResolved.removeAll( item->query().data() );
if ( d->waitingForResolved.isEmpty() )
emit loadingFinished();
finishLoading();
}
if ( !d->changesOngoing )