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

src/GEOMGUI/GeometryGUI.cxx

index 76feffd2cd49bf440c781bc0cec02228342fe47f..5a5789ab84d5b4e69e27526e8c3b9878708c4239 100644 (file)
@@ -54,6 +54,7 @@
 #include <LightApp_Preferences.h>
 #include <SALOME_LifeCycleCORBA.hxx>
 #include <SALOME_ListIO.hxx>
+#include <SALOME_ListIteratorOfListIO.hxx>
 
 // External includes
 #include <qfileinfo.h>
@@ -1246,12 +1247,12 @@ bool GeometryGUI::activateModule( SUIT_Study* study )
     myVTKSelectors.append( new LightApp_VTKSelector( dynamic_cast<SVTK_Viewer*>( vm->getViewModel() ), sm ) );
 
   // disable OCC selectors
-  //getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
+  getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
   for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
     sr->setEnabled(true);
 
   // disable VTK selectors
-  //getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() );
+  getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() );
   for ( LightApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() )
     sr->setEnabled(true);