Commit 9e0aff99 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Don't try to get ID of invalid selection.



This fixes an out-of-bounds array access.

Change-Id: Ia572d87ba00160f0869d8c7ab2941b4f9bc403f5
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 6daeaf3b
......@@ -155,7 +155,7 @@ Rectangle {
function selectBySelectionId(modelIndex, selectionId)
{
if (selectionId === -1 || (modelIndex === view.selectedModel &&
if (selectionId === -1 || (modelIndex === view.selectedModel && view.selectedItem !== -1 &&
selectionId === qmlProfilerModelProxy.selectionId(modelIndex, view.selectedItem)))
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment