From 9cd46e1c0765e466c3b30c2add9f1dd6d9d9bca7 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 11 Apr 2014 19:11:15 +0400 Subject: [PATCH] Debug of TreeModel --- src/XGUI/XGUI_DocumentDataModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_DocumentDataModel.cpp b/src/XGUI/XGUI_DocumentDataModel.cpp index b5d86ed23..cb765c74f 100644 --- a/src/XGUI/XGUI_DocumentDataModel.cpp +++ b/src/XGUI/XGUI_DocumentDataModel.cpp @@ -86,9 +86,9 @@ void XGUI_DocumentDataModel::processEvent(const Event_Message* theMessage) if (aUpdMsg->group().compare(PARTS_GROUP) == 0) { // Updsate only Parts group int aStart = myModel->rowCount(QModelIndex()) + myPartModels.size() - 1; beginRemoveRows(QModelIndex(), aStart, aStart); + endRemoveRows(); delete myPartModels.last(); myPartModels.removeLast(); - endRemoveRows(); } else { // Update top groups (other except parts QModelIndex aIndex = myModel->findGroup(aUpdMsg->group()); int aStart = myModel->rowCount(aIndex); -- 2.39.2