From e7e18fc6dee116052c033225781a0a050cac8a50 Mon Sep 17 00:00:00 2001 From: enk Date: Mon, 13 Mar 2006 08:51:12 +0000 Subject: [PATCH] Fix for Bug IPAL11840: CRASH after viewer closing during animation playing. --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2