From 5171e2cdb8d6ac8a04f4eab488c7bcaadd3b4f15 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 8 Jun 2011 10:16:17 +1000 Subject: [PATCH] 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. --- src/declarative/qml/qdeclarativebinding.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp index aa1059d..106cc10 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 result = d->v8value(0, &isUndefined); if (wasDeleted) { -- 1.7.2.5