Commit ed49e134 authored by Eike Ziller's avatar Eike Ziller
Browse files

Do not switch to design mode from search results



Change-Id: Iae10b8e10707cbc62bbd53109cbfb12ed1540536
Task-number: QTCREATORBUG-12028
Reviewed-by: default avatarRobert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent a6596a6c
......@@ -311,8 +311,9 @@ void BaseFileFind::openEditor(const Core::SearchResultItem &item)
IEditor *openedEditor = 0;
if (item.path.size() > 0) {
openedEditor = EditorManager::openEditorAt(QDir::fromNativeSeparators(item.path.first()),
item.lineNumber,
item.textMarkPos);
item.lineNumber,
item.textMarkPos, Id(),
EditorManager::DoNotSwitchToDesignMode);
} else {
openedEditor = EditorManager::openEditor(QDir::fromNativeSeparators(item.text));
}
......
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