Guard QML-specific handling of value type property access
authorKent Hansen <kent.hansen@nokia.com>
Thu, 11 Aug 2011 07:28:22 +0000 (09:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 11 Aug 2011 08:22:09 +0000 (10:22 +0200)
commitc595315fe45a2baf7a18262d76bb9eb1070d20b4
tree0b31f1b32ae3dde61482c55466ae8755b26ad81c
parent65b69351834efe423f7c9f1e85964db8af294394
Guard QML-specific handling of value type property access

When using QJSEngine, there is no QDeclarativeEngine
associated with the QV8Engine, so check if it's there first.

This was causing the QJS qobject bindings autotest to crash.

Change-Id: If2c1d414d615bfbe93580d06555f5c17b0e41eef
Reviewed-on: http://codereview.qt.nokia.com/2845
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/v8/qv8qobjectwrapper.cpp