diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-11 03:00:15 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-11 03:00:15 (GMT) |
commit | 2935ec84073898ed4fe700f41ca108d420fb5ba9 (patch) | |
tree | 425bff68c83175adc7f6392aa656faf2a71ee1e5 /src/declarative/qml/qmlcontextscriptclass.cpp | |
parent | 8cda26604462a4941818b7c9574851d9a07acebf (diff) | |
download | Qt-2935ec84073898ed4fe700f41ca108d420fb5ba9.zip Qt-2935ec84073898ed4fe700f41ca108d420fb5ba9.tar.gz Qt-2935ec84073898ed4fe700f41ca108d420fb5ba9.tar.bz2 |
Throw error when attempting to write to a non-existant property via script.
Diffstat (limited to 'src/declarative/qml/qmlcontextscriptclass.cpp')
-rw-r--r-- | src/declarative/qml/qmlcontextscriptclass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcontextscriptclass.cpp b/src/declarative/qml/qmlcontextscriptclass.cpp index 5635ceb..54a5ca3 100644 --- a/src/declarative/qml/qmlcontextscriptclass.cpp +++ b/src/declarative/qml/qmlcontextscriptclass.cpp @@ -173,7 +173,7 @@ QmlContextScriptClass::queryProperty(QmlContext *bindContext, QObject *scopeObje if (scopeObject) { QScriptClass::QueryFlags rv = - ep->objectClass->queryProperty(scopeObject, name, flags, bindContext); + ep->objectClass->queryProperty(scopeObject, name, flags, bindContext, QmlObjectScriptClass::ImplicitObject); if (rv) { lastScopeObject = scopeObject; lastContext = bindContext; @@ -183,7 +183,7 @@ QmlContextScriptClass::queryProperty(QmlContext *bindContext, QObject *scopeObje for (int ii = cp->defaultObjects.count() - 1; ii >= 0; --ii) { QScriptClass::QueryFlags rv = - ep->objectClass->queryProperty(cp->defaultObjects.at(ii), name, flags, bindContext); + ep->objectClass->queryProperty(cp->defaultObjects.at(ii), name, flags, bindContext, QmlObjectScriptClass::ImplicitObject); if (rv) { lastDefaultObject = ii; |