forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user