[new compiler] Fix remaining qquickanimation test failures
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 26 Feb 2014 10:48:50 +0000 (11:48 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Mar 2014 13:49:11 +0000 (14:49 +0100)
It can happen that even during initial binding evaluation, additional
finalization callbacks are registered. Catch those by setting the
activeObjectCreator pointer in the QQmlEngine accordingly - the VME does
it the same way.

Change-Id: If0fc902a4c8bdf7e8eec17bf433fd2bf11be7c04
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp

index cce7ccf77ed91f5b0cb2bbbc4f80488753ff3a05..ac70cb2c1627f46e9452e2e3c09a6ff6f3821c9b 100644 (file)
@@ -1052,6 +1052,8 @@ QObject *QQmlObjectCreator::createInstance(int index, QObject *parent)
 
 QQmlContextData *QQmlObjectCreator::finalize(QQmlInstantiationInterrupt &interrupt)
 {
+    ActiveOCRestorer ocRestorer(this, QQmlEnginePrivate::get(engine));
+
     {
     QQmlTrace trace("VME Binding Enable");
     trace.event("begin binding eval");