]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Text tree widget visual states of tree items should not be updated here because:
authornds <natalia.ermolaeva@opencascade.com>
Tue, 15 Nov 2016 10:41:21 +0000 (13:41 +0300)
committernds <natalia.ermolaeva@opencascade.com>
Tue, 15 Nov 2016 10:41:21 +0000 (13:41 +0300)
1. firstly it is updated according to object browser visual state of corresponded object
1. if we update it here, action "created OCC view" will show previous shown objects.

src/GEOMGUI/GeometryGUI.cxx

index 4a6c6f24451052a3d85a04bc2a9fc342277a7105..9f3c4b9bdd278e2ba6f8bb613e233633c02ebd54 100755 (executable)
@@ -1990,12 +1990,6 @@ void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
   action( GEOMOp::OpEditField )->setEnabled( ViewOCC ); // Edit Field
 
   action( GEOMOp::OpMultiTransform )->setEnabled( ViewOCC ); // MENU BLOCKS - MULTI-TRANSFORMATION
-
-  if ( ViewOCC )
-  {
-    SUIT_ViewModel* vmodel = win->getViewManager()->getViewModel();
-    myTextTreeWdg->updateVisibility(dynamic_cast<SALOME_View*>(vmodel));
-  }
 }
 
 void GeometryGUI::windows( QMap<int, int>& mappa ) const