From 1c74cc716b42aa1f152c07bb2704542e10cde1aa Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 17 Apr 2008 09:08:20 +0000 Subject: [PATCH] PAL18352, PAL19290: Conflict in objects selections when switching modules desable all but GEOM selectors at module deactivation --- src/GEOMGUI/GeometryGUI.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 1cd8629e8..06dbc9e2e 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -1224,13 +1224,15 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) for ( vm = VTKViewManagers.first(); vm; vm = VTKViewManagers.next() ) myVTKSelectors.append( new LightApp_VTKSelector( dynamic_cast( vm->getViewModel() ), sm ) ); - // disable OCC selectors - //getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() ); + // disable OCC selectors except myOCCSelectors + getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() ); // PAL19290 + //getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() ); PAL18352 for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() ) sr->setEnabled(true); - // disable VTK selectors - //getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() ); + // disable VTK selectors except myVTKSelectors + getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() ); // PAL19290 + //getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() ); PAL18352 for ( LightApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() ) sr->setEnabled(true); -- 2.39.2