1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

more build fixes

This commit is contained in:
Leo Franchi 2011-05-03 13:56:26 -04:00
parent 48246e9ec1
commit e001c6a197

View File

@ -161,15 +161,12 @@ CategoryItem::insertItem( SourceTreeItem* item )
void
CategoryItem::insertItems( QList< SourceTreeItem* > items )
{
Q_UNUSED(index);
// add the items to the category, and connect to the signals
int curCount = children().size();
if( m_showAdd ) // if there's an add item, add it before that
curCount--;
beginRowsAdded( curCount, curCount + items.size() - 1 );
foreach( SourceTreeItem* item, items ) {
int index = m_showAdd ? children().count() - 1 : children().count();
insertChild( children().count() - 1, item );
}
endRowsAdded();