]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix fo Bug IPAL12021:
authorenk <enk@opencascade.com>
Fri, 31 Mar 2006 07:10:03 +0000 (07:10 +0000)
committerenk <enk@opencascade.com>
Fri, 31 Mar 2006 07:10:03 +0000 (07:10 +0000)
Pressing "Escape" button during TimeStamps animation leads to crash

src/VISUGUI/VisuGUI_TimeAnimation.cxx
src/VISUGUI/VisuGUI_TimeAnimation.h

index 0faf02f3bfa18ea58e18ee12baab64d30cd15f60..c5e32dc870deb565edfa8f5c253a70f5453af2ef 100644 (file)
@@ -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)
 {
index 3c58b2b354e8b207447e9c8b4d2c5640a5e4f764..af7df3f2a4deb9692a7a48533888a03ba7e0fcdc 100644 (file)
@@ -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: