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