Commit 9531e751 authored by Christian Kamm's avatar Christian Kamm
Browse files

Revert "QmlJS: Use the canonical paths for the Documents."

Using canonical paths breaks with symlinked components. Also the editor
filename isn't canonical, so comparing them breaks.

This reverts commit efcdadd2.
parent 9095f77d
......@@ -47,10 +47,10 @@ Document::Document(const QString &fileName)
, _isQmlDocument(false)
, _documentRevision(0)
, _parsedCorrectly(false)
, _fileName(fileName)
QFileInfo fileInfo(fileName);
_path = fileInfo.canonicalPath();
_fileName = fileInfo.canonicalFilePath();
_path = fileInfo.absolutePath();
// ### Should use mime type
if (fileInfo.suffix() == QLatin1String("qml")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment