From d43286833e5b9f52f86f11940a7ee9bc9c23a0fc Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 30 Jun 2005 07:14:30 +0000 Subject: [PATCH] BugID: 9377, modifed method closeEvent --- src/GEOMBase/GEOMBase_Skeleton.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2