Text tree widget visual states of tree items should not be updated here because:

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.
This commit is contained in:
nds 2016-11-15 13:41:21 +03:00
parent d448d82dba
commit a2313210be

View File

@ -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