Skip to content
Snippets Groups Projects
Commit 0790af2a authored by Alexandre Lision's avatar Alexandre Lision
Browse files

Add missing signals in history model

{begin|end}InsertRows were not emitted
parent f6e93c0c
Branches
Tags
No related merge requests found
...@@ -268,12 +268,12 @@ HistoryTopLevelItem* HistoryModelPrivate::getCategory(const Call* call) ...@@ -268,12 +268,12 @@ HistoryTopLevelItem* HistoryModelPrivate::getCategory(const Call* call)
category = new HistoryTopLevelItem(name,index); category = new HistoryTopLevelItem(name,index);
category->modelRow = m_lCategoryCounter.size(); category->modelRow = m_lCategoryCounter.size();
//emit layoutAboutToBeChanged(); //Not necessary //emit layoutAboutToBeChanged(); //Not necessary
// beginInsertRows(QModelIndex(),m_lCategoryCounter.size(),m_lCategoryCounter.size()); HistoryModel::instance()->beginInsertRows(QModelIndex(),m_lCategoryCounter.size(),m_lCategoryCounter.size());
category->m_AbsoluteIndex = m_lCategoryCounter.size(); category->m_AbsoluteIndex = m_lCategoryCounter.size();
m_lCategoryCounter << category; m_lCategoryCounter << category;
m_hCategories [index] = category; m_hCategories [index] = category;
m_hCategoryByName[name ] = category; m_hCategoryByName[name ] = category;
// endInsertRows(); HistoryModel::instance()->endInsertRows();
//emit layoutChanged(); //emit layoutChanged();
} }
return category; return category;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment