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:
parent
48246e9ec1
commit
e001c6a197
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user