diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp index 816c725ebc5..a18f0f1a707 100644 --- a/src/corelib/animation/qpropertyanimation.cpp +++ b/src/corelib/animation/qpropertyanimation.cpp @@ -187,7 +187,7 @@ QObject *QPropertyAnimation::targetObject() const void QPropertyAnimation::setTargetObject(QObject *target) { Q_D(QPropertyAnimation); - if (d->targetValue == target) + if (d->target.data() == target) return; if (d->state != QAbstractAnimation::Stopped) {