summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeenginedebug.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-11-19 15:24:08 +0100
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-11-19 15:24:08 +0100
commite50e811461b54e07184af547f62aa44b3c5bb681 (patch)
tree45541bc05471d6c49305afeafa13f69031ccdecd /src/declarative/qml/qdeclarativeenginedebug.cpp
parent05b65c2f9df1c2c56c72f313401a6adb422d381b (diff)
parentb115770cc3bba68740a6848c7ccaed932399aca9 (diff)
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt
Conflicts: src/gui/text/qfontengine_mac.mm src/gui/text/qfontengine_p.h
Diffstat (limited to 'src/declarative/qml/qdeclarativeenginedebug.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeenginedebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeenginedebug.cpp b/src/declarative/qml/qdeclarativeenginedebug.cpp
index ed281857d2..bffe681470 100644
--- a/src/declarative/qml/qdeclarativeenginedebug.cpp
+++ b/src/declarative/qml/qdeclarativeenginedebug.cpp
@@ -502,7 +502,8 @@ void QDeclarativeEngineDebugServer::setBinding(int objectId,
property.write(expression);
} else if (hasValidSignal(object, propertyName)) {
QDeclarativeExpression *declarativeExpression = new QDeclarativeExpression(context, object, expression.toString());
- QDeclarativePropertyPrivate::setSignalExpression(property, declarativeExpression);
+ QDeclarativeExpression *oldExpression = QDeclarativePropertyPrivate::setSignalExpression(property, declarativeExpression);
+ declarativeExpression->setSourceLocation(oldExpression->sourceFile(), oldExpression->lineNumber());
} else if (property.isProperty()) {
QDeclarativeBinding *binding = new QDeclarativeBinding(expression.toString(), object, context);
binding->setTarget(property);