Added check for the existence of the study during its closing

This commit is contained in:
mpa 2014-09-26 11:26:08 +04:00
parent f5b69ee44c
commit c88c909655

View File

@ -4768,6 +4768,8 @@ bool SMESHGUI::deactivateModule( SUIT_Study* study )
void SMESHGUI::studyClosed( SUIT_Study* s ) void SMESHGUI::studyClosed( SUIT_Study* s )
{ {
if( !s )
return;
SMESH::RemoveVisuData( s->id() ); SMESH::RemoveVisuData( s->id() );
SalomeApp_Module::studyClosed( s ); SalomeApp_Module::studyClosed( s );
} }