From d31b49e21776ff85ccbf016d26167bcee4cd4d12 Mon Sep 17 00:00:00 2001 From: nri Date: Wed, 21 May 2003 12:30:34 +0000 Subject: [PATCH] NRI : Debug persistence (loadComponentData). --- src/SALOMEGUI/QAD_Desktop.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SALOMEGUI/QAD_Desktop.cxx b/src/SALOMEGUI/QAD_Desktop.cxx index 9b0008ca3..b4a6ea7d0 100644 --- a/src/SALOMEGUI/QAD_Desktop.cxx +++ b/src/SALOMEGUI/QAD_Desktop.cxx @@ -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)) { -- 2.39.2