[new compiler] Fix potential infinite recursion when using the incubator
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 6 Mar 2014 12:25:02 +0000 (13:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Mar 2014 13:23:15 +0000 (14:23 +0100)
commit2235d6b77afd893a7c60d6c38d16f75fe2042144
tree0714594bfdf0ab8eb0712c89488bedbe8abf2f8a
parent5de274605a19fe7d8cf989978d5959826e7970c7
[new compiler] Fix potential infinite recursion when using the incubator

Some auto-tests use the incubation controller with a one-step boolean,
so shouldInterrupt() always returns true. When we're in the finalization phase
enabling the bindings one-by-one, pop one off the bindings stack and enable it
_before_ doing the shouldInterrupt() check. Otherwise we don't progress at all.

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