Salome HOME
Improving graphical 'Unpublish' functionality to hide also references of the given...
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_PublishDlg.cxx
index 514a5f2009cbdf20c62a60c9cb645fc15b164a4f..17c3a2b3f691cb14e947ed81dbe5550d9d791445 100644 (file)
@@ -340,6 +340,13 @@ void GEOMToolsGUI_PublishDlg::clickOnApply() {
           item->setData(0,Qt::CheckStateRole,QVariant());
         }
       }
+      // show references if any
+      std::vector< _PTR(SObject) > vso = aStudy->FindDependances(SO);
+      for ( int i = 0; i < vso.size(); i++ ) {
+       _PTR(SObject) refObj = vso[i];
+       aDrw = aBuilder->FindOrCreateAttribute( refObj, "AttributeDrawable" );
+       aDrw->SetDrawable( true );
+      }
     }
   }
   toProcess.clear();