]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL18352, PAL19290: Conflict in objects selections when switching modules
authoreap <eap@opencascade.com>
Thu, 17 Apr 2008 09:08:20 +0000 (09:08 +0000)
committereap <eap@opencascade.com>
Thu, 17 Apr 2008 09:08:20 +0000 (09:08 +0000)
     desable all but GEOM selectors at module deactivation

src/GEOMGUI/GeometryGUI.cxx

index 1cd8629e8eb32cfbeb39c367439f1e60f36d4ddf..06dbc9e2e15a7744421d3971fddafdb298ab27be 100644 (file)
@@ -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<SVTK_Viewer*>( 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);