summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontextscriptclass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcontextscriptclass.cpp')
-rw-r--r--src/declarative/qml/qmlcontextscriptclass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcontextscriptclass.cpp b/src/declarative/qml/qmlcontextscriptclass.cpp
index 4b149f7..8f45870 100644
--- a/src/declarative/qml/qmlcontextscriptclass.cpp
+++ b/src/declarative/qml/qmlcontextscriptclass.cpp
@@ -104,7 +104,8 @@ QmlContextScriptClass::queryProperty(Object *object, const Identifier &name,
for (int ii = 0; ii < cp->defaultObjects.count(); ++ii) {
QScriptClass::QueryFlags rv =
- ep->objectClass->queryProperty(cp->defaultObjects.at(ii), name, flags);
+ ep->objectClass->queryProperty(cp->defaultObjects.at(ii), name, flags,
+ QmlObjectScriptClass::SkipAttachedProperties);
if (rv) {
lastDefaultObject = ii;