From 088231317f1691aad1bf84c57fc0dad5ff2489b9 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 26 Jul 2005 09:54:24 +0000 Subject: [PATCH] IPAL8983: Close study during animation playing - SIGILL --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 1bae73cc..cc639284 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -832,15 +832,14 @@ static QPixmap MYpausePixmap(pauseIco); VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule, _PTR(Study) theStudy) : QDialog(VISU::GetDesktop(theModule), "VisuGUI_TimeAnimationDlg", false, WStyle_Customize | - WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose) + WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), + myModule(theModule), + myStudy(theStudy) { setCaption("Animation"); setSizeGripEnabled( TRUE ); - myModule = theModule; - myStudy = theStudy; isClosing = false; - //myAnimator = new VISU_TimeAnimation (VISU::GetDSStudy(theStudy)); myAnimator = new VISU_TimeAnimation (theStudy); myAnimator->setSpeed(1); myAnimator->setViewer(VISU::GetViewWindow()); @@ -997,6 +996,9 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule, _PTR(Stu QPushButton* aCloseBtn = new QPushButton(tr("BUT_CLOSE"), aBtnBox); connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close())); + SUIT_Study* aStudy = VISU::GetAppStudy(myModule); + connect(aStudy, SIGNAL(destroyed()), this, SLOT(close())); + aMainLayout->addWidget(aBtnBox); myPlayFrame->setEnabled(false); -- 2.39.2