From: vsv Date: Fri, 11 Apr 2014 15:11:15 +0000 (+0400) Subject: Debug of TreeModel X-Git-Tag: V_0.1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cd46e1c0765e466c3b30c2add9f1dd6d9d9bca7;p=modules%2Fshaper.git Debug of TreeModel --- 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);