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

Setup closure after adding tracks to model, so we don't accidentally clear/append twice.

This commit is contained in:
Christian Muehlhaeuser 2014-12-10 04:34:21 +01:00
parent af1cd29673
commit 8601b0bd2d

View File

@ -212,10 +212,9 @@ TreeModel::addTracks( const album_ptr& album, const QModelIndex& parent )
{
startLoading();
onTracksAdded( album->tracks( m_mode, m_collection ), parent );
NewClosure( album.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ),
const_cast<TreeModel*>(this), SLOT( addTracks( Tomahawk::album_ptr, QModelIndex ) ), album, parent );
onTracksAdded( album->tracks( m_mode, m_collection ), parent );
}