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