mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-15 13:51:21 +05:00
PAL18352, PAL19290: Conflict in objects selections when switching modules
desable all but GEOM selectors
This commit is contained in:
parent
b8ae562b9b
commit
af6a52e38f
@ -54,6 +54,7 @@
|
|||||||
#include <LightApp_Preferences.h>
|
#include <LightApp_Preferences.h>
|
||||||
#include <SALOME_LifeCycleCORBA.hxx>
|
#include <SALOME_LifeCycleCORBA.hxx>
|
||||||
#include <SALOME_ListIO.hxx>
|
#include <SALOME_ListIO.hxx>
|
||||||
|
#include <SALOME_ListIteratorOfListIO.hxx>
|
||||||
|
|
||||||
// External includes
|
// External includes
|
||||||
#include <qfileinfo.h>
|
#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 ) );
|
myVTKSelectors.append( new LightApp_VTKSelector( dynamic_cast<SVTK_Viewer*>( vm->getViewModel() ), sm ) );
|
||||||
|
|
||||||
// disable OCC selectors
|
// 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() )
|
for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
|
||||||
sr->setEnabled(true);
|
sr->setEnabled(true);
|
||||||
|
|
||||||
// disable VTK selectors
|
// 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() )
|
for ( LightApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() )
|
||||||
sr->setEnabled(true);
|
sr->setEnabled(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user