diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-20 16:05:30 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-08 18:34:19 +0000 |
commit | 0c48277203b13ebc37fba4f4d111db7e6b7579a8 (patch) | |
tree | e570a3a9fbb7f1daee469d4058014544acb78612 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 548cc400a780f795cceef0eb841191a3669f58f2 (diff) |
Don't push new QML contexts onto the context stack
When creating new QML contexts, these are not used directly,
but rather as scopes for other functions. Change the
behavior, so that newQmlContext doesn't push the new context
onto the context stack.
Change-Id: I8254da3f660c4791941835c925b9892274ea51b0
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 525f806d7a..1cff952401 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -212,7 +212,6 @@ Heap::FunctionObject *FunctionObject::createQmlFunction(QQmlContextData *qmlCont QV4::Scope valueScope(engine); ScopedContext global(valueScope, valueScope.engine->rootContext()); QV4::Scoped<QmlContext> wrapperContext(valueScope, global->newQmlContext(qmlContext, scopeObject)); - engine->popContext(); if (!signalParameters.isEmpty()) { if (error) |