Fix another crash due to unregistered enum types
authorChris Adams <christopher.adams@nokia.com>
Thu, 31 May 2012 04:48:18 +0000 (14:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 1 Jun 2012 07:34:30 +0000 (09:34 +0200)
commit2c65dce8f68bfb03848dbd395fd1501fd7cd1510
treed8cf7cebcde5cab31647a2fd676b09bf3ae8c0fd
parenta63f318319c6eaef7bc7aeab2be4c83dcd06f084
Fix another crash due to unregistered enum types

f62ab0a3dfaa873bb15cd1526f98f50a17228a9c missed one other case,
when binding valid property values to invalid property types.
This commit fixes that case, and adds both binding and assignment
tests for that case.

Change-Id: Iaca889e4214d2218012d30c4a00f2aac886375f7
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlproperty.cpp
tests/auto/qml/qqmlecmascript/data/enums.2.qml
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp