Fix crash for changing a value if a expression is assigned

Task-Number: BAUHAUS-617
Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-04-20 16:37:26 +02:00
committed by Kai Koehne
parent 3d6560a10b
commit fdd768352a

View File

@@ -394,6 +394,9 @@ void QmlPropertyChangesObject::setVariantValue(const QString &name, const QVaria
} }
QDeclarativeAction &qmlAction = qmlActionForProperty(name); QDeclarativeAction &qmlAction = qmlActionForProperty(name);
if (qmlAction.fromBinding)
qmlAction.fromBinding->setEnabled(false, QDeclarativePropertyPrivate::BypassInterceptor | QDeclarativePropertyPrivate::DontRemoveBinding);
qmlAction.toValue = value; qmlAction.toValue = value;
} }