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 efcdadd2bb.
This commit is contained in:
Christian Kamm
2010-04-01 12:40:37 +02:00
parent 9095f77d71
commit 9531e75188

View File

@@ -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")