]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL7832: Ignore 'Interface Applicative' component and it's children in the UseCase...
authorvsr <vsr@opencascade.com>
Tue, 1 Feb 2005 08:04:29 +0000 (08:04 +0000)
committervsr <vsr@opencascade.com>
Tue, 1 Feb 2005 08:04:29 +0000 (08:04 +0000)
src/SALOMEGUI/QAD_ObjectBrowser.cxx

index 8dbcba9f0d6b94e5fec3c78812ecb2fec4ca7f91..e97f591edf5ac71c0340e4e9c70edcf3d78ca39e 100644 (file)
@@ -1052,6 +1052,15 @@ void QAD_ObjectBrowser::UpdateUCItem( SALOMEDS::SObject_var UCObject, QAD_Object
   if ( myStudy->_is_nil() || !UCItem ) 
     return;
 
+  // --- VSR: 01/02/05 --- start
+  // skip all 'Interface Applicative' objects
+  SALOMEDS::SComponent_var SCO = UCObject->GetFatherComponent();
+  CORBA::String_var aCorbaString = SCO->ComponentDataType();
+  QString dataType = aCorbaString.in();
+  if ( dataType.compare("Interface Applicative") == 0 )
+    return;
+  // --- VSR: 01/02/05 --- finish
+
   /* Creating SObjects item */
   SALOMEDS::SObject_var                      RefSO;
   SALOMEDS::GenericAttribute_var             anAttr;