forked from qt-creator/qt-creator
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 <knud.dollereder@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user