]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
BugID: 9377, modifed method closeEvent
authorsrn <srn@opencascade.com>
Thu, 30 Jun 2005 07:14:30 +0000 (07:14 +0000)
committersrn <srn@opencascade.com>
Thu, 30 Jun 2005 07:14:30 +0000 (07:14 +0000)
src/GEOMBase/GEOMBase_Skeleton.cxx

index 8e3b36185213cb9c29a0084e1d9f7bcbe5fdc8c3..b2242cc24bd9d16d236f2e84a67a3d8673757a8e 100644 (file)
@@ -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 );
 }