diff options
author | hjk <hjk@qt.io> | 2019-06-24 12:28:07 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-06-24 12:54:23 +0000 |
commit | 0d49c2cd2c78ab3eda4722559a8387aebd752537 (patch) | |
tree | 04fd3b0658bf9b00e2f4afc0ce66f0101b98c3a5 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | 33fde35c1938691e17a5254650e492f1d8b7835c (diff) |
Debugger: Use Utils::TreeModel as base for StackHandler
Change-Id: I3fcc1b3a149f15cf414a1560d91145b623e40c63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 674870f6bf..d518d77701 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -663,7 +663,9 @@ void QmlEngine::activateFrame(int index) return; stackHandler()->setCurrentIndex(index); - gotoLocation(stackHandler()->frames().value(index)); + auto frameItem = stackHandler()->rootItem()->childAt(index); + QTC_ASSERT(frameItem, return); + gotoLocation(frameItem->frame); d->updateLocals(); } |