QmlDesigner: Fix timeline recording

We have to set the new timeline even if the current was invalid.

Task-number: QDS-13532
Change-Id: I7cf1ed33248d89c87107b924733ae31335d20edb
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Thomas Hartmann
2024-09-03 12:33:18 +02:00
parent 8dfe44db93
commit 3998ba94a7

View File

@@ -468,11 +468,11 @@ void TimelineView::setTimelineRecording(bool value)
void TimelineView::setCurrentTimeline(const ModelNode &timeline)
{
if (QmlTimeline currentTimeline = currentTimelineNode()) {
if (QmlTimeline currentTimeline = currentTimelineNode())
currentTimeline.toogleRecording(false);
if (isAttached())
model()->setCurrentTimelineNode(timeline);
}
}
void TimelineView::customNotification(const AbstractView * /*view*/,