1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02: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 void
CategoryItem::insertItems( QList< SourceTreeItem* > items ) CategoryItem::insertItems( QList< SourceTreeItem* > items )
{ {
Q_UNUSED(index);
// add the items to the category, and connect to the signals // add the items to the category, and connect to the signals
int curCount = children().size(); int curCount = children().size();
if( m_showAdd ) // if there's an add item, add it before that if( m_showAdd ) // if there's an add item, add it before that
curCount--; curCount--;
beginRowsAdded( curCount, curCount + items.size() - 1 ); beginRowsAdded( curCount, curCount + items.size() - 1 );
foreach( SourceTreeItem* item, items ) { foreach( SourceTreeItem* item, items ) {
int index = m_showAdd ? children().count() - 1 : children().count();
insertChild( children().count() - 1, item ); insertChild( children().count() - 1, item );
} }
endRowsAdded(); endRowsAdded();