mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-28 18:30:36 +05:00
Fix for bug IPAL19798(Qt4 porting: Sphere Construction - Entities of primitives are not selectable after switch Geom/Mesh/Geom).
This commit is contained in:
parent
3f03b5271e
commit
4832804ffb
@ -1209,14 +1209,14 @@ 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() ); //@
|
||||
QListIterator<GEOMGUI_OCCSelector*> itOCCSel( myOCCSelectors );
|
||||
while ( itOCCSel.hasNext() )
|
||||
if ( GEOMGUI_OCCSelector* sr = itOCCSel.next() )
|
||||
sr->setEnabled(true);
|
||||
|
||||
// disable VTK selectors
|
||||
//getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() );
|
||||
getApp()->selectionMgr()->setEnabled( false, SVTK_Viewer::Type() ); //@
|
||||
QListIterator<LightApp_VTKSelector*> itVTKSel( myVTKSelectors );
|
||||
while ( itVTKSel.hasNext() )
|
||||
if ( LightApp_VTKSelector* sr = itVTKSel.next() )
|
||||
@ -1250,9 +1250,11 @@ bool GeometryGUI::deactivateModule( SUIT_Study* study )
|
||||
action(111)->setEnabled(false); // Import
|
||||
action(121)->setEnabled(false); // Export
|
||||
|
||||
qDeleteAll(myOCCSelectors);
|
||||
myOCCSelectors.clear();
|
||||
getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
|
||||
|
||||
qDeleteAll(myVTKSelectors);
|
||||
myVTKSelectors.clear();
|
||||
getApp()->selectionMgr()->setEnabled( true, SVTK_Viewer::Type() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user