From: jfa Date: Tue, 26 Jul 2005 09:54:24 +0000 (+0000) Subject: IPAL8983: Close study during animation playing - SIGILL X-Git-Tag: V3_0_1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=088231317f1691aad1bf84c57fc0dad5ff2489b9;p=modules%2Fvisu.git IPAL8983: Close study during animation playing - SIGILL --- 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);