From: enk Date: Mon, 13 Mar 2006 08:51:12 +0000 (+0000) Subject: Fix for Bug IPAL11840: X-Git-Tag: mergeto_trunk_13Mar06 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7e18fc6dee116052c033225781a0a050cac8a50;p=modules%2Fvisu.git Fix for Bug IPAL11840: CRASH after viewer closing during animation playing. --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 0c531e79..de4de17e 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -1156,6 +1156,9 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule, _PTR(Stu SUIT_Study* aStudy = VISU::GetAppStudy(myModule); connect(aStudy, SIGNAL(destroyed()), this, SLOT(close())); + connect(myAnimator->getViewer(), SIGNAL(destroyed()), this, SLOT(close())); + connect(myAnimator->getViewer(), SIGNAL(closing(SUIT_ViewWindow*)), this, SLOT(close())); + aMainLayout->addWidget(aBtnBox); myPlayFrame->setEnabled(false);