From: enk Date: Fri, 31 Mar 2006 07:10:03 +0000 (+0000) Subject: Fix fo Bug IPAL12021: X-Git-Tag: mergeto_OCC_debug_for_3_2_0b1_07Apr06~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c489eba919a3ac4b8fe89d9afc4cd647c77c8a8d;p=modules%2Fvisu.git Fix fo Bug IPAL12021: Pressing "Escape" button during TimeStamps animation leads to crash --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 0faf02f3..c5e32dc8 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -1296,6 +1296,12 @@ void VisuGUI_TimeAnimationDlg::showEvent(QShowEvent* theEvent) mySetupDlg = new SetupDlg(this,myModule, myAnimator); } +void VisuGUI_TimeAnimationDlg::reject() +{ + close(); + QDialog::reject(); +} + //------------------------------------------------------------------------ void VisuGUI_TimeAnimationDlg::closeEvent (QCloseEvent* theEvent) { diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.h b/src/VISUGUI/VisuGUI_TimeAnimation.h index 3c58b2b3..af7df3f2 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.h +++ b/src/VISUGUI/VisuGUI_TimeAnimation.h @@ -140,6 +140,7 @@ class VisuGUI_TimeAnimationDlg: public QDialog protected: virtual void closeEvent(QCloseEvent* theEvent); virtual void showEvent(QShowEvent* theEvent); + virtual void reject(); void stopAnimation(); private slots: