Commit 9f51aeb7 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix timeline preview failing when creating a new project

Related to #993
parent e725bcfd
...@@ -103,6 +103,7 @@ void TimelineController::setModel(std::shared_ptr<TimelineItemModel> model) ...@@ -103,6 +103,7 @@ void TimelineController::setModel(std::shared_ptr<TimelineItemModel> model)
m_lastVideoTarget = -1; m_lastVideoTarget = -1;
m_lastAudioTarget.clear(); m_lastAudioTarget.clear();
m_timelinePreview = nullptr; m_timelinePreview = nullptr;
m_usePreview = false;
m_model = std::move(model); m_model = std::move(model);
m_activeSnaps.clear(); m_activeSnaps.clear();
connect(m_model.get(), &TimelineItemModel::requestClearAssetView, pCore.get(), &Core::clearAssetPanel); connect(m_model.get(), &TimelineItemModel::requestClearAssetView, pCore.get(), &Core::clearAssetPanel);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment