aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-27 10:50:00 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-12-03 11:09:37 +0100
commitecfe8329eb16d1c9cef3efe4f8fa10a81e6ed612 (patch)
tree7954550d3daa20b86521eac321396d235cbc021c /src
parentcb0d13692657d171e031d48c2879f8d8ce8e0e6a (diff)
Core: FileSystemFilter: Pass cleaned absolute paths to EditorManager
Change-Id: Iafbda13697686acf5595b799001e80967763eb8f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/locator/filesystemfilter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp
index 0a2a98efb98..9e76d046b60 100644
--- a/src/plugins/coreplugin/locator/filesystemfilter.cpp
+++ b/src/plugins/coreplugin/locator/filesystemfilter.cpp
@@ -159,8 +159,9 @@ void FileSystemFilter::accept(LocatorFilterEntry selection) const
file.open(QFile::WriteOnly);
file.close();
}
- EditorManager::openEditor(selection.internalData.toString(), Id(),
- EditorManager::CanContainLineNumber);
+ const QFileInfo fileInfo(selection.internalData.toString());
+ const QString cleanedFilePath = QDir::cleanPath(fileInfo.absoluteFilePath());
+ EditorManager::openEditor(cleanedFilePath, Id(), EditorManager::CanContainLineNumber);
}
bool FileSystemFilter::openConfigDialog(QWidget *parent, bool &needsRefresh)