Ensure context is valid before VME method creation
authorMatthew Vogt <matthew.vogt@nokia.com>
Fri, 27 Apr 2012 06:09:22 +0000 (16:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 May 2012 04:04:47 +0000 (06:04 +0200)
commite39908c658c6caa2013bc7356eb904b669af1bfb
tree34c2cf6f42ce9d8f0ce43f940e5da0dc8f52879e
parent78f1d2679242c84efe6d8eb763c13caf58efe19d
Ensure context is valid before VME method creation

Ensure that a valid context exists prior to evaluation of a VME method
function.  Invalid contexts can occur if a method's first invocation is
triggered after the destruction of the component's context.

Task-number: QTBUG-25516
Change-Id: I349a73c5713e178f920c44f5ddcaa1dc6eec199f
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlvmemetaobject.cpp
tests/auto/qml/qqmlcontext/data/ContainerComponent.qml [new file with mode: 0644]
tests/auto/qml/qqmlcontext/data/ContentComponent.qml [new file with mode: 0644]
tests/auto/qml/qqmlcontext/data/evalAfterInvalidate.qml [new file with mode: 0644]
tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp