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() );