forked from qt-creator/qt-creator
Revert "TextEditor: Use canonical path for opened document"
This reverts commit 67cfdbd224.
We cannot just resolve symlinks when opening files.
The resolved name might not have much to do with the name of
the symlink (e.g. some version control systems do that).
Change-Id: I373bfc3d4474fe6b7ef4723de254293665fe87ea
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -655,7 +655,7 @@ Core::IDocument::OpenResult TextDocument::openImpl(QString *errorString, const Q
|
||||
documentLayout->lastSaveRevision = d->m_autoSaveRevision = d->m_document.revision();
|
||||
d->updateRevisions();
|
||||
d->m_document.setModified(fileName != realFileName);
|
||||
setFilePath(Utils::FileName::fromString(fi.canonicalFilePath()));
|
||||
setFilePath(Utils::FileName::fromUserInput(fi.absoluteFilePath()));
|
||||
}
|
||||
if (readResult == Utils::TextFileFormat::ReadIOError)
|
||||
return OpenResult::ReadError;
|
||||
|
||||
Reference in New Issue
Block a user