mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
GenericPageItem insertion fixage.
This commit is contained in:
@@ -350,13 +350,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