Commit 23f873cc authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Crash fix

Trimm expression to avoid ambiguity that leads to assert.

Task-number: QTCREATORBUG-16059
Change-Id: Id5f0378e38f0edeba22236c6e9519c8107e4a311
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 7c3013a5
......@@ -327,8 +327,8 @@ void BindingModel::updateExpression(int row)
{
BindingProperty bindingProperty = bindingPropertyForRow(row);
const QString sourceNode = data(index(row, SourceModelNodeRow)).toString();
const QString sourceProperty = data(index(row, SourcePropertyNameRow)).toString();
const QString sourceNode = data(index(row, SourceModelNodeRow)).toString().trimmed();
const QString sourceProperty = data(index(row, SourcePropertyNameRow)).toString().trimmed();
QString expression;
if (sourceProperty.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment