]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Send "delete" event also for deleted group
authormpv <mikhail.ponikarov@opencascade.com>
Fri, 11 Apr 2014 14:38:19 +0000 (18:38 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 11 Apr 2014 14:38:19 +0000 (18:38 +0400)
src/Model/Model_Document.cxx

index 03a497213a70ee1d715857eeccb4a9514e7f29bc..9049c299d932dc3884efc17791a19d1752f93c5d 100644 (file)
@@ -364,9 +364,13 @@ void Model_Document::synchronizeFeatures()
   }
   // delete all groups left after the data model groups iteration
   while(aGroupNamesIter != myGroupsNames.end()) {
-    myFeatures.erase(*aGroupNamesIter);
-    myGroups.erase(*aGroupNamesIter);
+    string aGroupName = *aGroupNamesIter;
+    myFeatures.erase(aGroupName);
+    myGroups.erase(aGroupName);
     aGroupNamesIter = myGroupsNames.erase(aGroupNamesIter);
+    // say that features were deleted from group
+    ModelAPI_FeatureDeletedMessage aMsg(aThis, aGroupName);
+    Event_Loop::loop()->send(aMsg);
   }
   // create new groups basing on the following data model update
   for(; aGroupsIter.More(); aGroupsIter.Next()) {