From: srn Date: Thu, 30 Jun 2005 07:14:30 +0000 (+0000) Subject: BugID: 9377, modifed method closeEvent X-Git-Tag: V3_0_1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d43286833e5b9f52f86f11940a7ee9bc9c23a0fc;p=modules%2Fgeom.git BugID: 9377, modifed method closeEvent --- 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 ); }