forked from qt-creator/qt-creator
Fix crash for changing a value if a expression is assigned
Task-Number: BAUHAUS-617 Reviewed-by: kkoehne
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user