OSDN Git Service

QmlJSObserver: Fix crash when adding an element to some .qml files
authorKai Koehne <kai.koehne@nokia.com>
Thu, 7 Oct 2010 11:13:05 +0000 (13:13 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Fri, 8 Oct 2010 13:51:56 +0000 (15:51 +0200)
commitd1175f3ea2c305955fbf7ac67e4738f354e437cd
tree96680a9a4317a864be3e88ead0a8aac68305263d
parent6863a848e991a839e2b09ac0a9006c04ce9598a3
QmlJSObserver: Fix crash when adding an element to some .qml files

Make sure that the 'artifical' URL of the item created actually is
absolute (starts with a file:///). Otherwise an Assert will be hit
when the imports include e.g. a .js file, and the Engine tries to
load it.

Task-number: QTCREATORBUG-2644
Reviewed-by: Olivier Goffart
src/libs/qmljs/qmljsdelta.cpp
src/plugins/qmljsinspector/qmljsclientproxy.cpp