1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02: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
committed by Michael Zanetti
parent ff0c3d4bef
commit 6b36f3a737

View File

@@ -746,13 +746,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 );
}