]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Delete obsolete indexes
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 26 May 2015 08:51:17 +0000 (11:51 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 26 May 2015 08:51:17 +0000 (11:51 +0300)
src/PartSet/PartSet_DocumentDataModel.cpp
src/PartSet/PartSet_DocumentDataModel.h

index bf0eff521bcc92a833f877b5c4be58f8781d6e7a..961768c1892a89c3e62f76ca19029452af416231 100644 (file)
@@ -136,6 +136,9 @@ void PartSet_DocumentDataModel::processEvent(const std::shared_ptr<Events_Messag
             removeSubModel(aDelPartModel);
             removeRow(aStart, partFolderNode(0));
           }
+        } if (aGroup == ModelAPI_Feature::group()) { // Update History node
+          int aRow = historyOffset() + aRootDoc->size(ModelAPI_Feature::group());
+          removeRow(aRow);
         } else {  // Update top groups (other except parts
           QModelIndex aIndex = myModel->findGroup(aGroup);
           int aStart = myModel->rowCount(aIndex);
index 360a1d686d71cf83e742fd53a9f6a449c5910644..e059a1f4e50aef64493fdb5be4787fe70ac8b605 100644 (file)
@@ -146,7 +146,7 @@ Q_OBJECT
 
   enum
   {
-    PartsFolder = -100,
+    PartsFolder,
     HistoryNode,
     PartResult
   };