X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_Study.cxx;h=f081af349a2ae8fb8a2d3d5fddbdc2f64ab19734;hb=38d4b2d7696e9e2d347c7f38f29459baa347cde6;hp=ab6166997d6d3e58ccdbaa1433310d69d15368c4;hpb=93efc2933b71107bcc4c72bd6a05c62ce78e1735;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index ab6166997..f081af349 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -287,14 +287,11 @@ public: if ( it != entry2SuitObject.end() ) { suit_obj = it->second; - // VSR: object is not removed, since SALOMEDS::SObject is not actually removed, - // only its attributes are cleared; - // thus, the object can be later reused suit_obj->updateItem(); - //SUIT_DataObject* father=suit_obj->parent(); - //if(father) - // father->removeChild(suit_obj); - //entry2SuitObject.erase(it); + SUIT_DataObject* father=suit_obj->parent(); + if(father) + father->removeChild(suit_obj); + entry2SuitObject.erase(it); } else {