From 9531e75188243a3ee6dc0a0018ee5febe5983bb4 Mon Sep 17 00:00:00 2001
From: Christian Kamm <christian.d.kamm@nokia.com>
Date: Thu, 1 Apr 2010 12:40:37 +0200
Subject: [PATCH] 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 efcdadd2bbb272c1998d970206b9c6a4a494c5bb.
---
 src/libs/qmljs/qmljsdocument.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp
index 6ccbf532d05..de18b8328d6 100644
--- a/src/libs/qmljs/qmljsdocument.cpp
+++ b/src/libs/qmljs/qmljsdocument.cpp
@@ -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")
-- 
GitLab