1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

GenericPageItem insertion fixage.

This commit is contained in:
Teo Mrnjavac
2013-06-16 18:06:29 +02:00
committed by Michael Zanetti
parent 426dd354eb
commit 187602c424

View File

@@ -354,13 +354,14 @@ SourcesModel::appendGroups()
void
SourcesModel::appendPageItem( const QIcon& pageIcon, const QString& pageTitle, const QString& pageName )
{
// beginInsertRows();
QModelIndex parentIndex = indexFromItem( m_browse );
beginInsertRows( parentIndex, rowCount( parentIndex ), rowCount( parentIndex ) );
GenericPageItem* pageItem = new GenericPageItem( this, m_browse, pageTitle, pageIcon,
boost::bind( &ViewManager::showDynamicPage, ViewManager::instance(), pageName ),
boost::bind( &ViewManager::dynamicPageWidget, ViewManager::instance(), pageName ) );
m_browse;
// endInsertRows();
pageItem->setSortValue( rowCount( parentIndex ) );
endInsertRows();
}