1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* PlayableModel::ensureResolved() passes queries in one batch to the Pipeline now.

This commit is contained in:
Christian Muehlhaeuser 2013-06-08 10:19:35 +02:00
parent cee71b9b08
commit 80cc6b45dd

View File

@ -706,13 +706,16 @@ PlayableModel::onPlaybackStopped()
void
PlayableModel::ensureResolved()
{
for( int i = 0; i < rowCount( QModelIndex() ); i++ )
QList< query_ptr > ql;
for ( int i = 0; i < rowCount( QModelIndex() ); i++ )
{
query_ptr query = itemFromIndex( index( i, 0, QModelIndex() ) )->query();
if ( !query->resolvingFinished() )
Pipeline::instance()->resolve( query );
ql << query;
}
Pipeline::instance()->resolve( ql );
}