Commit cf4e085a authored by Matthias Blaicher's avatar Matthias Blaicher Committed by Tobias Hunger

Fix path handling in ShowInEditorTaskHandler

Using canonicalFilePath() will break handling of symbolic links
inside Core::DocumentManager::addDocuments.

Change-Id: I4af2c8b54618cf5fc28e31c779db9ccd4abff184
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 8bb7a8e2
......@@ -50,7 +50,7 @@ bool ShowInEditorTaskHandler::canHandle(const ProjectExplorer::Task &task) const
void ShowInEditorTaskHandler::handle(const ProjectExplorer::Task &task)
{
QFileInfo fi(task.file.toFileInfo());
TextEditor::BaseTextEditorWidget::openEditorAt(fi.canonicalFilePath(), task.movedLine);
TextEditor::BaseTextEditorWidget::openEditorAt(fi.filePath(), task.movedLine);
}
QAction *ShowInEditorTaskHandler::createAction(QObject *parent) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment