QmlDesigner: Use local timeline

We should not use m_graphicsScene->currentTimeline() from the widget.

Change-Id: If31e57884622722818bc1b3254bda98434e65c1e
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-04-20 16:21:09 +02:00
parent dc88306983
commit 2da6b66210

View File

@@ -417,7 +417,7 @@ void TimelineWidget::init()
m_statusBar->clear(); m_statusBar->clear();
} }
invalidateTimelineDuration(m_graphicsScene->currentTimeline()); invalidateTimelineDuration(currentTimeline);
m_graphicsScene->setWidth(m_graphicsView->viewport()->width()); m_graphicsScene->setWidth(m_graphicsView->viewport()->width());