QmlProfiler: Don't switch to edit mode if editor is invisible

Clicking on something in the QML profiler should never trigger a switch
to a different mode.

Change-Id: I4784e836b0091d44fd046b605c49d2b10b3e8c34
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-09-07 18:37:59 +02:00
parent 04003d81b0
commit 879b770277
3 changed files with 11 additions and 7 deletions

View File

@@ -499,7 +499,8 @@ void QmlProfilerTool::gotoSourceLocation(const QString &fileUrl, int lineNumber,
// The text editors count columns starting with 0, but the ASTs store the
// location starting with 1, therefore the -1.
EditorManager::openEditorAt(projectFileName, lineNumber, columnNumber - 1, Id(),
EditorManager::DoNotSwitchToDesignMode);
EditorManager::DoNotSwitchToDesignMode
| EditorManager::DoNotSwitchToEditMode);
}
void QmlProfilerTool::updateTimeDisplay()