qtdeclarative/tests/auto/declarative/qdeclarativecontext
Glenn Watson d2c1adc6f9 Emit destruction signal before child contexts are destroyed.
Verbatim comment from bug report:

When using a QtObject inside an item, and then we call a function
in the Component.onDestruction handler of that item, we get a
crash. This happens because the QDeclarativeContextData engine
has been invalidated before reaching
QDeclarativeExpressionPrivate::evalFunction.

Change code to emit the onDestruction signal before the child
contexts are invalidated.

Task-number: QTBUG-22535
Change-Id: Ic4983ae5fdf104ae977189c21dc202c9b02bc2bc
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
2011-11-22 03:31:14 +01:00
..
data Emit destruction signal before child contexts are destroyed. 2011-11-22 03:31:14 +01:00
qdeclarativecontext.pro Deploy qdeclarativecontext test data files. 2011-11-11 08:20:53 +01:00
tst_qdeclarativecontext.cpp Emit destruction signal before child contexts are destroyed. 2011-11-22 03:31:14 +01:00