aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basefilefind.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2014-11-18 08:59:16 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2014-12-10 17:26:22 +0100
commited49e1347ebfebe2a8de625039f4e3f97cf07dbc (patch)
tree1178c17c904c1d67a161008c57806131d0188376 /src/plugins/texteditor/basefilefind.cpp
parenta6596a6cfb03391fbcb8d9c42e8320c2998ee35f (diff)
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>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.cpp')
-rw-r--r--src/plugins/texteditor/basefilefind.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/texteditor/basefilefind.cpp b/src/plugins/texteditor/basefilefind.cpp
index 7cdaf6ab73..e56b978ed7 100644
--- a/src/plugins/texteditor/basefilefind.cpp
+++ b/src/plugins/texteditor/basefilefind.cpp
@@ -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));
}