aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-06-08 10:16:17 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-06-08 10:16:17 +1000
commit5171e2cdb8d6ac8a04f4eab488c7bcaadd3b4f15 (patch)
tree4c605c128769e85d9fb32dbf7855ad0e0a7a1cbe /src
parent1325c549744346154a915115e9787b97427fad81 (diff)
Enter context before running bindings
Although not strictly necessary to run the binding function, the subsequent calls to toVariant() might execute code and thus require a context.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qdeclarativebinding.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp
index aa1059dde3..106cc10372 100644
--- a/src/declarative/qml/qdeclarativebinding.cpp
+++ b/src/declarative/qml/qdeclarativebinding.cpp
@@ -372,6 +372,7 @@ void QDeclarativeBinding::update(QDeclarativePropertyPrivate::WriteFlags flags)
QVariant value;
v8::HandleScope handle_scope;
+ v8::Context::Scope scope(ep->v8engine.context());
v8::Local<v8::Value> result = d->v8value(0, &isUndefined);
if (wasDeleted) {