1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-19 23:41:51 +02:00

* This certainly slowed down collection loading.

This commit is contained in:
Christian Muehlhaeuser 2011-03-17 09:35:13 +01:00
parent 7778c92a17
commit 9934b6e1d4

View File

@ -210,8 +210,8 @@ CollectionFlatModel::processTracksToAdd()
int maxc = qMin( chunkSize, m_tracksToAdd.count() );
int c = rowCount( QModelIndex() );
//emit beginInsertRows( QModelIndex(), c, c + maxc - 1 );
beginResetModel();
emit beginInsertRows( QModelIndex(), c, c + maxc - 1 );
//beginResetModel();
PlItem* plitem;
QList< Tomahawk::query_ptr >::iterator iter = m_tracksToAdd.begin();
@ -229,8 +229,8 @@ CollectionFlatModel::processTracksToAdd()
m_tracksToAdd.erase( m_tracksToAdd.begin(), iter );
endResetModel();
//emit endInsertRows();
//endResetModel();
emit endInsertRows();
qDebug() << Q_FUNC_INFO << rowCount( QModelIndex() );
if ( m_tracksToAdd.count() )