From: mkr Date: Wed, 8 Jun 2005 09:51:34 +0000 (+0000) Subject: Modification for correct update of the object browser. X-Git-Tag: T3_0_0_a2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef9c4bc298a2df11a276d1f1ae9795c96031922c;p=modules%2Fsuperv.git Modification for correct update of the object browser. --- diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index e8c624e..b307213 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -898,7 +898,8 @@ _PTR(SObject) createDataflowSObj( SUIT_Study* study, if ( !aSO ) { // dataflow SObject not found in the study aDoneSomething = true; _PTR(SComponent) aComponent = aStudy->FindComponent(STUDY_SUPERVISION); - if ( aComponent ) { // if component found, create name and icon for it to display it in object browser + if ( !aComponent ) { // is supervision component not found, then create it + aComponent = aBuilder->NewComponent(STUDY_SUPERVISION); anAttr = aBuilder->FindOrCreateAttribute(aComponent, "AttributeName"); aName = anAttr; aName->SetValue( (( CAM_Application* )(study->application()))->moduleTitle( "SUPERV" ).latin1() );