]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug of TreeModel
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Apr 2014 15:11:15 +0000 (19:11 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Apr 2014 15:11:15 +0000 (19:11 +0400)
src/XGUI/XGUI_DocumentDataModel.cpp

index b5d86ed231a647eaeb60b1c482050237dc9e77a4..cb765c74f858d02792e95a2490bc1e9b30eafb46 100644 (file)
@@ -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);