mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
From NewGEOM: activation of SMESH after any module without object browser crashes application
This commit is contained in:
parent
8db2fa9bfa
commit
45e112ac79
@ -4765,10 +4765,9 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
|
|||||||
|
|
||||||
// 0020210. Make SMESH_Gen update meshes at switching GEOM->SMESH
|
// 0020210. Make SMESH_Gen update meshes at switching GEOM->SMESH
|
||||||
GetSMESHGen()->SetCurrentStudy(SALOMEDS::Study::_nil());
|
GetSMESHGen()->SetCurrentStudy(SALOMEDS::Study::_nil());
|
||||||
if ( SalomeApp_Study* s = dynamic_cast<SalomeApp_Study*>( study ))
|
if ( SalomeApp_Study* s = dynamic_cast<SalomeApp_Study*>( study )) {
|
||||||
if ( _PTR(Study) aStudy = s->studyDS()) {
|
if ( _PTR(Study) aStudy = s->studyDS() )
|
||||||
GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
|
GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
|
||||||
updateObjBrowser(); // objects can be removed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// get all view currently opened in the study and connect their signals to
|
// get all view currently opened in the study and connect their signals to
|
||||||
|
Loading…
Reference in New Issue
Block a user