Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix crash on project open

parent b212dda2
Pipeline #2271 passed with stage
in 25 minutes and 52 seconds
......@@ -843,6 +843,7 @@ void ProjectManager::updateTimeline(int pos, int scrollPos)
Mlt::Service s(*xmlProd);
Mlt::Tractor tractor(s);
m_mainTimelineModel = TimelineItemModel::construct(&pCore->getCurrentProfile()->profile(), m_project->getGuideModel(), m_project->commandStack());
pCore->window()->getMainTimeline()->setModel(m_mainTimelineModel);
constructTimelineFromMelt(m_mainTimelineModel, tractor);
const QString groupsData = m_project->getDocumentProperty(QStringLiteral("groups"));
if (!groupsData.isEmpty()) {
......@@ -850,7 +851,6 @@ void ProjectManager::updateTimeline(int pos, int scrollPos)
}
pCore->monitorManager()->projectMonitor()->setProducer(m_mainTimelineModel->producer(), pos);
pCore->window()->getMainTimeline()->setModel(m_mainTimelineModel);
pCore->monitorManager()->projectMonitor()->adjustRulerSize(m_mainTimelineModel->duration() - 1, m_project->getGuideModel());
pCore->window()->getMainTimeline()->controller()->setZone(m_project->zone());
pCore->window()->getMainTimeline()->controller()->setTargetTracks(m_project->targetTracks());
......
Markdown is supported
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