From 109ce6ef421517018e628b5820fc2cd23f5f8d52 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 14 Oct 2015 07:50:46 +0000 Subject: [PATCH] Revert "TextEditor: Use canonical path for opened document" This reverts commit 67cfdbd22460d592a15adb2fc10cf78fa412dd77. 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 --- src/plugins/texteditor/textdocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/textdocument.cpp b/src/plugins/texteditor/textdocument.cpp index 4ddbcf226a7..cc28f20dc5a 100644 --- a/src/plugins/texteditor/textdocument.cpp +++ b/src/plugins/texteditor/textdocument.cpp @@ -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;