diff options
author | Alan Alpert <aalpert@blackberry.com> | 2013-08-21 13:21:03 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-22 21:12:58 +0200 |
commit | fac5337abfef36c631fe73152157446aae0ea3ea (patch) | |
tree | a54f9cd915cf480487359ffb7ad86d65f2ddeb5e /tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml | |
parent | da91b1c7312379ee18118059ee03faaf147a7d17 (diff) |
Don't crash with deferred properties
There are cases where a qmlExecuteDeferred(o) can be postponed until the
context of o is being destroyed, at which point it's too late to create
an object in that context.
Task-number: QTBUG-33112
Change-Id: I7f981b5e34e3cb8a52c00de4742a7242d7e4df54
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml b/tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml new file mode 100644 index 0000000000..d636dffccc --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/deferredPropertiesInDestruction.qml @@ -0,0 +1,6 @@ +import Qt.test 1.0 + +MyVeryDeferredObject { + id: root + objectProperty: MyQmlObject { } +} |