]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
NRI : Debug persistence (loadComponentData).
authornri <nri@opencascade.com>
Wed, 21 May 2003 12:30:34 +0000 (12:30 +0000)
committernri <nri@opencascade.com>
Wed, 21 May 2003 12:30:34 +0000 (12:30 +0000)
src/SALOMEGUI/QAD_Desktop.cxx

index 9b0008ca38cfb52e440d2056998eddcc96bbe537..b4a6ea7d00ce2c61106c58cda43b615d25c8af14 100644 (file)
@@ -1464,14 +1464,14 @@ void QAD_Desktop::onOpenStudy()
 bool QAD_Desktop::loadComponentData( const QString& compName )
 {
   // Open component's data in active study if any
-  MESSAGE("loadComponentData(): Opening component data")
+  MESSAGE("loadComponentData(): Opening " << compName << " component data ")
   if (!myActiveStudy) {
     MESSAGE("loadComponentData(): No active study exists")
     return false;
   }
 
   Engines::Component_var comp ;
-  if ( compName.compare("Supervision") == 0 ) {
+  if ( compName.compare("SUPERV") == 0 ) {
     comp = getEngine( "SuperVisionContainer", compName) ;
   }
   else {
@@ -1484,7 +1484,7 @@ bool QAD_Desktop::loadComponentData( const QString& compName )
   }
 
   SALOMEDS::Study_var aStudy = myActiveStudy->getStudyDocument();
-  SALOMEDS::SComponent_var SCO = SALOMEDS::SComponent::_narrow(aStudy->FindObject(compName));
+  SALOMEDS::SComponent_var SCO = SALOMEDS::SComponent::_narrow(aStudy->FindObject( getComponentUserName(compName) ));
           
   if (!SCO->_is_nil()) {
     if (!CORBA::is_nil(comp)) {