From 7c57a34edfe1f98b4b4ab377fdb0c2409d944b90 Mon Sep 17 00:00:00 2001 From: enk Date: Thu, 27 Apr 2006 12:06:21 +0000 Subject: [PATCH] Fix for Bug IPAL12248: Crash after close "Animation" dialog box with saving pictures, speed 99 and fit all --- src/VISU_I/VISU_TimeAnimation.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index f2b8e1c8..66b97cd5 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -110,8 +110,10 @@ VISU_TimeAnimation::~VISU_TimeAnimation() * There is no chance for the thread to cleanup after itself, * unlock any held mutexes, etc. In short, use this function only if absolutely necessary. */ - QThread::terminate(); + myDumpPath = ""; QThread::wait(100); + QThread::terminate(); + QThread::wait(400); } @@ -636,7 +638,7 @@ void VISU_TimeAnimation::run() if (isDumping) { // We must unlock mutex for some time before grabbing to allow view updating qApp->unlock(); - msleep(100); + msleep(delay); qApp->lock(); if(!(myFieldsLst[0].myField)) // break, if field was deleted. break; -- 2.39.2