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:
committed by
Michael Zanetti
parent
ff0c3d4bef
commit
6b36f3a737
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user