diff --git a/src/libtomahawk/playlist/TreeModel.cpp b/src/libtomahawk/playlist/TreeModel.cpp index 56461e58c..bc7838181 100644 --- a/src/libtomahawk/playlist/TreeModel.cpp +++ b/src/libtomahawk/playlist/TreeModel.cpp @@ -216,8 +216,7 @@ TreeModel::addTracks( const album_ptr& album, const QModelIndex& parent, bool au connect( album.data(), SIGNAL( tracksAdded( QList, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ), SLOT( onTracksFound( QList, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ) ); - if ( !album->tracks( m_mode, m_collection ).isEmpty() ) - onTracksAdded( album->tracks( m_mode, m_collection ), parent ); + onTracksAdded( album->tracks( m_mode, m_collection ), parent ); } @@ -305,6 +304,8 @@ TreeModel::onTracksAdded( const QList& tracks, const QModel QPair< int, int > crows; int c = rowCount( parent ); + removeRows( 0, c, parent ); + crows.first = c; crows.second = c + tracks.count() - 1;