From c489eba919a3ac4b8fe89d9afc4cd647c77c8a8d Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 31 Mar 2006 07:10:03 +0000 Subject: [PATCH] Fix fo Bug IPAL12021: Pressing "Escape" button during TimeStamps animation leads to crash --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 6 ++++++ src/VISUGUI/VisuGUI_TimeAnimation.h | 1 + 2 files changed, 7 insertions(+) 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: -- 2.39.2