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:
committed by
Michael Zanetti
parent
426dd354eb
commit
187602c424
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user