From 0790af2a6653d13a37bcdc0d154d3f43f7f29ab0 Mon Sep 17 00:00:00 2001 From: Alexandre Lision <alexandre.lision@savoirfairelinux.com> Date: Wed, 4 Feb 2015 14:26:17 -0500 Subject: [PATCH] Add missing signals in history model {begin|end}InsertRows were not emitted --- src/historymodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/historymodel.cpp b/src/historymodel.cpp index 7cefccff..a101aab3 100644 --- a/src/historymodel.cpp +++ b/src/historymodel.cpp @@ -267,14 +267,14 @@ HistoryTopLevelItem* HistoryModelPrivate::getCategory(const Call* call) if (!category) { category = new HistoryTopLevelItem(name,index); category->modelRow = m_lCategoryCounter.size(); -// emit layoutAboutToBeChanged(); //Not necessary -// beginInsertRows(QModelIndex(),m_lCategoryCounter.size(),m_lCategoryCounter.size()); + //emit layoutAboutToBeChanged(); //Not necessary + HistoryModel::instance()->beginInsertRows(QModelIndex(),m_lCategoryCounter.size(),m_lCategoryCounter.size()); category->m_AbsoluteIndex = m_lCategoryCounter.size(); m_lCategoryCounter << category; m_hCategories [index] = category; m_hCategoryByName[name ] = category; -// endInsertRows(); -// emit layoutChanged(); + HistoryModel::instance()->endInsertRows(); + //emit layoutChanged(); } return category; } -- GitLab