diff options
author | Lars Knoll <[email protected]> | 2013-08-30 13:13:28 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-02 17:27:36 +0200 |
commit | 2bd74245fadb69922132f7ca2ae98e645f67742b (patch) | |
tree | dd4705fcf10037e50eaea7b1258032473d65b176 /src/qml/jsruntime/qv4context.cpp | |
parent | 4dbb2ab600930d476a6f279dc73befdf56220359 (diff) |
Fix a small bug in ExecutionContext::getPropertyAndBase
Don't return the activation object as base, as it's only a helper
for mutable properties in regular call contexts
Change-Id: I2c36a4aff9cf82d87f80e541b4ec21ef17e18e8d
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index 7d7f5dda25..29fdc333f8 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -572,7 +572,8 @@ Value ExecutionContext::getPropertyAndBase(String *name, Object **base) bool hasProperty = false; Value v = c->activation->get(name, &hasProperty); if (hasProperty) { - *base = c->activation; + if (ctx->type == Type_QmlContext) + *base = c->activation; return v; } } |