From f21b1430f8b2cb62d15d42d127e690362bf49093 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 12 Jan 2011 10:04:55 +0100 Subject: [PATCH] ProgressManager: Fix runtime warning Fix "QPropertyAnimation::updateState (%s): Changing state of an animation without target" warning. This apparently happens when the animation is still running, but the FutureProgress widget has already been killed. Avoid this by setting the widget as the parent of the animation. --- src/plugins/coreplugin/progressmanager/futureprogress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/progressmanager/futureprogress.cpp b/src/plugins/coreplugin/progressmanager/futureprogress.cpp index 697f76440bf..1b3e5049923 100644 --- a/src/plugins/coreplugin/progressmanager/futureprogress.cpp +++ b/src/plugins/coreplugin/progressmanager/futureprogress.cpp @@ -337,7 +337,7 @@ bool FutureProgress::hasError() const void FutureProgress::fadeAway() { d->m_faderWidget->raise(); - QSequentialAnimationGroup *group = new QSequentialAnimationGroup; + QSequentialAnimationGroup *group = new QSequentialAnimationGroup(this); QPropertyAnimation *animation = new QPropertyAnimation(d->m_faderWidget, "opacity"); animation->setDuration(600); animation->setEndValue(1.0);