mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* This certainly slowed down collection loading.
This commit is contained in:
@@ -210,8 +210,8 @@ CollectionFlatModel::processTracksToAdd()
|
|||||||
int maxc = qMin( chunkSize, m_tracksToAdd.count() );
|
int maxc = qMin( chunkSize, m_tracksToAdd.count() );
|
||||||
int c = rowCount( QModelIndex() );
|
int c = rowCount( QModelIndex() );
|
||||||
|
|
||||||
//emit beginInsertRows( QModelIndex(), c, c + maxc - 1 );
|
emit beginInsertRows( QModelIndex(), c, c + maxc - 1 );
|
||||||
beginResetModel();
|
//beginResetModel();
|
||||||
|
|
||||||
PlItem* plitem;
|
PlItem* plitem;
|
||||||
QList< Tomahawk::query_ptr >::iterator iter = m_tracksToAdd.begin();
|
QList< Tomahawk::query_ptr >::iterator iter = m_tracksToAdd.begin();
|
||||||
@@ -229,8 +229,8 @@ CollectionFlatModel::processTracksToAdd()
|
|||||||
|
|
||||||
m_tracksToAdd.erase( m_tracksToAdd.begin(), iter );
|
m_tracksToAdd.erase( m_tracksToAdd.begin(), iter );
|
||||||
|
|
||||||
endResetModel();
|
//endResetModel();
|
||||||
//emit endInsertRows();
|
emit endInsertRows();
|
||||||
qDebug() << Q_FUNC_INFO << rowCount( QModelIndex() );
|
qDebug() << Q_FUNC_INFO << rowCount( QModelIndex() );
|
||||||
|
|
||||||
if ( m_tracksToAdd.count() )
|
if ( m_tracksToAdd.count() )
|
||||||
|
Reference in New Issue
Block a user