diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2014-11-27 10:50:00 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2014-12-03 11:09:37 +0100 |
commit | ecfe8329eb16d1c9cef3efe4f8fa10a81e6ed612 (patch) | |
tree | 7954550d3daa20b86521eac321396d235cbc021c | |
parent | cb0d13692657d171e031d48c2879f8d8ce8e0e6a (diff) | |
download | qt-creator-ecfe8329eb16d1c9cef3efe4f8fa10a81e6ed612.tar.gz |
Core: FileSystemFilter: Pass cleaned absolute paths to EditorManager
Change-Id: Iafbda13697686acf5595b799001e80967763eb8f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
-rw-r--r-- | src/plugins/coreplugin/locator/filesystemfilter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp index 0a2a98efb9..9e76d046b6 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) |