Commit f21b1430 authored by Kai Koehne's avatar Kai Koehne

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.
parent 6dae14c6
......@@ -337,7 +337,7 @@ bool FutureProgress::hasError() const
void FutureProgress::fadeAway()
QSequentialAnimationGroup *group = new QSequentialAnimationGroup;
QSequentialAnimationGroup *group = new QSequentialAnimationGroup(this);
QPropertyAnimation *animation = new QPropertyAnimation(d->m_faderWidget, "opacity");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment