summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlbehavior.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmlbehavior.cpp')
-rw-r--r--src/declarative/util/qmlbehavior.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/util/qmlbehavior.cpp b/src/declarative/util/qmlbehavior.cpp
index 5e11dea..276e2d0 100644
--- a/src/declarative/util/qmlbehavior.cpp
+++ b/src/declarative/util/qmlbehavior.cpp
@@ -124,8 +124,10 @@ void QmlBehavior::setAnimation(QmlAbstractAnimation *animation)
}
d->animation = animation;
- if (d->animation)
+ if (d->animation) {
d->animation->setDefaultTarget(d->property);
+ d->animation->setDisableUserControl();
+ }
}
/*!