diff options
author | Matthias Blaicher <matthias@blaicher.com> | 2013-02-21 18:36:10 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-02-22 11:32:11 +0100 |
commit | cf4e085a111589d82a34f2f621cc7c60873bc5d4 (patch) | |
tree | f8624751a61d16ad751dfb50426d408585884f7f /src/plugins/projectexplorer/showineditortaskhandler.cpp | |
parent | 8bb7a8e2edad1c55a16dc7ca61801d731e4b082d (diff) |
Fix path handling in ShowInEditorTaskHandler
Using canonicalFilePath() will break handling of symbolic links
inside Core::DocumentManager::addDocuments.
Change-Id: I4af2c8b54618cf5fc28e31c779db9ccd4abff184
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/showineditortaskhandler.cpp')
-rw-r--r-- | src/plugins/projectexplorer/showineditortaskhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/showineditortaskhandler.cpp b/src/plugins/projectexplorer/showineditortaskhandler.cpp index 128c34f2d01..aee1be4749d 100644 --- a/src/plugins/projectexplorer/showineditortaskhandler.cpp +++ b/src/plugins/projectexplorer/showineditortaskhandler.cpp @@ -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 |