mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Call startLoading() before dispatching to the resolver.
This commit is contained in:
@@ -311,8 +311,8 @@ PlaylistModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int
|
|||||||
|
|
||||||
if ( !d->waitingForResolved.isEmpty() )
|
if ( !d->waitingForResolved.isEmpty() )
|
||||||
{
|
{
|
||||||
|
startLoading();
|
||||||
Pipeline::instance()->resolve( queries );
|
Pipeline::instance()->resolve( queries );
|
||||||
emit loadingStarted();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
finishLoading();
|
finishLoading();
|
||||||
@@ -341,7 +341,7 @@ PlaylistModel::trackResolved( bool )
|
|||||||
|
|
||||||
if ( d->waitingForResolved.isEmpty() )
|
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 ) ) );
|
disconnect( item->query().data(), SIGNAL( resolvingFinished( bool ) ), this, SLOT( trackResolved( bool ) ) );
|
||||||
d->waitingForResolved.removeAll( item->query().data() );
|
d->waitingForResolved.removeAll( item->query().data() );
|
||||||
if ( d->waitingForResolved.isEmpty() )
|
if ( d->waitingForResolved.isEmpty() )
|
||||||
emit loadingFinished();
|
finishLoading();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !d->changesOngoing )
|
if ( !d->changesOngoing )
|
||||||
|
Reference in New Issue
Block a user