aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-05-19 06:34:04 +0200
committerLiang Qi <liang.qi@qt.io>2016-05-19 06:34:04 +0200
commitafc84775efdc6e13e2e210bb94e115b378d90134 (patch)
tree24985cc95111ecf2b637019363a32414b95860fe /src/qml/jsruntime/qv4engine.cpp
parent6371b208a9e55845090dcd34234e314c6587c105 (diff)
parent72515ebe5a63c201fde09471bc646dbe15110a6b (diff)
Merge remote-tracking branch 'origin/5.6.1' into 5.6
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index 49b6dce697..fefc5b6308 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -693,7 +693,7 @@ Heap::QmlContext *ExecutionEngine::qmlContext() const
if (ctx->type == Heap::ExecutionContext::Type_SimpleCallContext && !ctx->outer)
ctx = parentContext(currentContext)->d();
- if (!ctx->outer)
+ if (ctx->type != Heap::ExecutionContext::Type_QmlContext && !ctx->outer)
return 0;
while (ctx->outer && ctx->outer->type != Heap::ExecutionContext::Type_GlobalContext)