From fdd768352a85b2b7db425c33f602f8e0c4551822 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 20 Apr 2010 16:37:26 +0200 Subject: [PATCH] Fix crash for changing a value if a expression is assigned Task-Number: BAUHAUS-617 Reviewed-by: kkoehne --- .../core/instances/qmlpropertychangesnodeinstance.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp index f31308e6181..9546f1f7892 100644 --- a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp +++ b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp @@ -394,6 +394,9 @@ void QmlPropertyChangesObject::setVariantValue(const QString &name, const QVaria } QDeclarativeAction &qmlAction = qmlActionForProperty(name); + if (qmlAction.fromBinding) + qmlAction.fromBinding->setEnabled(false, QDeclarativePropertyPrivate::BypassInterceptor | QDeclarativePropertyPrivate::DontRemoveBinding); + qmlAction.toValue = value; }