Skip to content
Snippets Groups Projects
Commit 3191cfe8 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix invalid errors inside qmlproject files.

The Document thought it was a JS file as it doesn't have the .qml
extension.
parent d97bdd1a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,9 @@ Document::Document(const QString &fileName)
QFileInfo fileInfo(fileName);
_path = fileInfo.absolutePath();
if (fileInfo.suffix() == QLatin1String("qml")) {
// ### Should use mime type
if (fileInfo.suffix() == QLatin1String("qml")
|| fileInfo.suffix() == QLatin1String("qmlproject")) {
_isQmlDocument = true;
_componentName = fileInfo.baseName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment