_PTR(ChildIterator) aIter = aStudy->NewChildIterator(aSObject);
for (; aIter->More(); aIter->Next()) {
_PTR(SObject) aTblObj = aIter->Value();
- if ( aTblObj ) {
+ if( aTblObj ) {
_PTR(GenericAttribute) anAttr;
if (aTblObj->FindAttribute( anAttr, "AttributeName" ) ) {
+
+ _PTR(ChildIterator) aChildIter = aStudy->NewChildIterator( aTblObj );
+ SalomeApp_Study* salome_study = GetAppStudy( theModule );
+ for( aChildIter->InitEx( false ); aChildIter->More(); aChildIter->Next() )
+ salome_study->deleteReferencesTo( aChildIter->Value() );
+
aBuilder->RemoveObjectWithChildren( aTblObj ); // We should have only one child
- UpdateObjBrowser(theModule,true,aTblObj);
+
+ //UpdateObjBrowser(theModule,true,aTblObj);
break;
}
}