Return earlier if script.context() is invalid
authorCharles Yin <charles.yin@nokia.com>
Wed, 9 May 2012 01:50:47 +0000 (11:50 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 May 2012 02:36:41 +0000 (04:36 +0200)
commitb15f96c3256264944a39fbf04cc186d980042571
treec94afd3696bd41d0471a7da5faa775dbb4c7d2b5
parent5aa875f82d5ffe1b1d67fbae47ce7f8eb63c8ebe
Return earlier if script.context() is invalid

If script.context() is invalid, the qml expression is invalid too,
so no need to continue contructing the expression at all.

Change-Id: I5a34cf0eb1c2cc0b2bba7eed736073050f3240e9
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlexpression.cpp