From e6d2e81c07035b01c72014572fdce2db3edd3dde Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 21 Apr 2021 17:59:47 +0200 Subject: [PATCH] QmlDesigner: Make explicit how we collect the current timeline The method graphicsScene()->currentTimeline() should not be used anymore. Change-Id: Ib05df55c66a962dd7b129759ea330dd83efbc04e Reviewed-by: Knud Dollereder Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/timelineeditor/timelineview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp index 3467d88d442..92314e77661 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp @@ -404,7 +404,7 @@ void TimelineView::openSettingsDialog() void TimelineView::setTimelineRecording(bool value) { - ModelNode node = widget()->graphicsScene()->currentTimeline(); + const ModelNode node = timelineForState(currentState()).modelNode(); if (value && node.isValid()) { activateTimelineRecording(node);