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:
parent
cee71b9b08
commit
80cc6b45dd
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user