]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL11840: OCC_development_for_3_2_0a2 mergeto_trunk_13Mar06
authorenk <enk@opencascade.com>
Mon, 13 Mar 2006 08:51:12 +0000 (08:51 +0000)
committerenk <enk@opencascade.com>
Mon, 13 Mar 2006 08:51:12 +0000 (08:51 +0000)
CRASH after viewer closing during animation playing.

src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 0c531e791e706561863b5680e82012abbe99ed99..de4de17ef4c8fd15baec5a08295bfb72b8cc797b 100644 (file)
@@ -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);