forked from qt-creator/qt-creator
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user