Do not switch to design mode from search results

Change-Id: Iae10b8e10707cbc62bbd53109cbfb12ed1540536
Task-number: QTCREATORBUG-12028
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2014-11-18 08:59:16 +01:00
parent a6596a6cfb
commit ed49e1347e

View File

@@ -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));
}