mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* PlayableModel::ensureResolved() passes queries in one batch to the Pipeline now.
This commit is contained in:
@@ -706,13 +706,16 @@ PlayableModel::onPlaybackStopped()
|
|||||||
void
|
void
|
||||||
PlayableModel::ensureResolved()
|
PlayableModel::ensureResolved()
|
||||||
{
|
{
|
||||||
|
QList< query_ptr > ql;
|
||||||
for ( int i = 0; i < rowCount( QModelIndex() ); i++ )
|
for ( int i = 0; i < rowCount( QModelIndex() ); i++ )
|
||||||
{
|
{
|
||||||
query_ptr query = itemFromIndex( index( i, 0, QModelIndex() ) )->query();
|
query_ptr query = itemFromIndex( index( i, 0, QModelIndex() ) )->query();
|
||||||
|
|
||||||
if ( !query->resolvingFinished() )
|
if ( !query->resolvingFinished() )
|
||||||
Pipeline::instance()->resolve( query );
|
ql << query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Pipeline::instance()->resolve( ql );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user