diff options
author | Simon Hausmann <[email protected]> | 2013-11-19 00:31:04 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-11-19 07:57:45 +0100 |
commit | cac9989643d54b15ea0b8e53889336b429e4504d (patch) | |
tree | 35211bbb4829385c2c91d4296b2a9d4e5929030b /src/qml/compiler/qqmlcodegenerator.cpp | |
parent | da31479ee237a40ed03bcaf1352f00d33d1f325c (diff) |
Fix failing assertion when trying to assign to an id referenced QML object
References to id addressed QML objects are member expressions, which are unlike
other member expressions by not being lvalues. Handle this correctly.
Task-Number: QTBUG-34890
Change-Id: Ied6230edbc561128ad36bf0d1a1918185204deec
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qqmlcodegenerator.cpp')
-rw-r--r-- | src/qml/compiler/qqmlcodegenerator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator.cpp b/src/qml/compiler/qqmlcodegenerator.cpp index 2b3cb80acb..c16dd5daea 100644 --- a/src/qml/compiler/qqmlcodegenerator.cpp +++ b/src/qml/compiler/qqmlcodegenerator.cpp @@ -1211,6 +1211,7 @@ JSCodeGen::JSCodeGen(QQmlEnginePrivate *enginePrivate, const QString &fileName, { _module = jsModule; _module->setFileName(fileName); + _fileNameIsUrl = true; } void JSCodeGen::beginContextScope(const JSCodeGen::ObjectIdMapping &objectIds, QQmlPropertyCache *contextObject) |