BugID: 9377, modifed method closeEvent

This commit is contained in:
srn 2005-06-30 07:14:30 +00:00
parent 2d00c4016f
commit d43286833e

View 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 );
}