From ef9c4bc298a2df11a276d1f1ae9795c96031922c Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 8 Jun 2005 09:51:34 +0000 Subject: [PATCH] Modification for correct update of the object browser. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ); -- 2.39.2