diff --git a/src/GEOMBase/GEOMBase_Skeleton.cxx b/src/GEOMBase/GEOMBase_Skeleton.cxx index 8e3b36185..b2242cc24 100644 --- a/src/GEOMBase/GEOMBase_Skeleton.cxx +++ b/src/GEOMBase/GEOMBase_Skeleton.cxx @@ -177,7 +177,11 @@ void GEOMBase_Skeleton::ActivateThisDialog() //================================================================================= void GEOMBase_Skeleton::closeEvent(QCloseEvent* e) { - disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0); + SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication()); + if(app) { + disconnect( app->selectionMgr(), 0, this, 0); + app->updateActions(); + } QDialog::closeEvent( e ); }