summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-08 03:45:34 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-08 03:45:34 (GMT)
commit9fed46c4420a594965b3bff1648cae8fe4e404f5 (patch)
tree715ff0e298f0cb09938d7bb1637e21ba01e51532 /src/declarative/qml
parente956369606363c1ecce4287567b210dbde66e676 (diff)
downloadQt-9fed46c4420a594965b3bff1648cae8fe4e404f5.zip
Qt-9fed46c4420a594965b3bff1648cae8fe4e404f5.tar.gz
Qt-9fed46c4420a594965b3bff1648cae8fe4e404f5.tar.bz2
Fix location of error message.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativescriptparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativescriptparser.cpp b/src/declarative/qml/qdeclarativescriptparser.cpp
index cba5bb9..b4938bb 100644
--- a/src/declarative/qml/qdeclarativescriptparser.cpp
+++ b/src/declarative/qml/qdeclarativescriptparser.cpp
@@ -488,8 +488,8 @@ bool ProcessAST::visit(AST::UiImport *node)
} else if (import.type == QDeclarativeScriptParser::Import::Script) {
QDeclarativeError error;
error.setDescription(QCoreApplication::translate("QDeclarativeParser","Script import requires a qualifier"));
- error.setLine(node->importIdToken.startLine);
- error.setColumn(node->importIdToken.startColumn);
+ error.setLine(node->fileNameToken.startLine);
+ error.setColumn(node->fileNameToken.startColumn);
_parser->_errors << error;
return false;
}