mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Setup closure after adding tracks to model, so we don't accidentally clear/append twice.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user