forked from qt-creator/qt-creator
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:
@@ -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*/,
|
||||
|
Reference in New Issue
Block a user