Commit 4c03096f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

Avoid native filenames in QML references



Task-number: QTCREATORBUG-7191

Change-Id: I0198eb6909e5e250831f2031b1245e8e955d49ff
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent d429dda7
......@@ -971,11 +971,12 @@ void FindReferences::cancel()
void FindReferences::openEditor(const Find::SearchResultItem &item)
{
if (item.path.size() > 0) {
TextEditor::BaseTextEditorWidget::openEditorAt(item.path.first(), item.lineNumber, item.textMarkPos,
Core::Id(),
Core::EditorManager::ModeSwitch);
TextEditor::BaseTextEditorWidget::openEditorAt(QDir::fromNativeSeparators(item.path.first()),
item.lineNumber, item.textMarkPos, Core::Id(),
Core::EditorManager::ModeSwitch);
} else {
Core::EditorManager::instance()->openEditor(item.text, Core::Id(), Core::EditorManager::ModeSwitch);
Core::EditorManager::instance()->openEditor(QDir::fromNativeSeparators(item.text),
Core::Id(), Core::EditorManager::ModeSwitch);
}
}
......
......@@ -292,8 +292,8 @@ void BaseFileFind::openEditor(const Find::SearchResultItem &item)
Core::Id(),
Core::EditorManager::ModeSwitch);
} else {
openedEditor = Core::EditorManager::instance()->openEditor(item.text, Core::Id(),
Core::EditorManager::ModeSwitch);
openedEditor = Core::EditorManager::instance()->openEditor(QDir::fromNativeSeparators(item.text),
Core::Id(), Core::EditorManager::ModeSwitch);
}
if (m_currentFindSupport)
m_currentFindSupport->clearResults();
......
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