Commit f1038a51 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle Committed by Julius Künzel
Browse files

Fix crash on project opening

parent e1f2853a
Pipeline #254148 failed with stage
in 9 minutes and 17 seconds
......@@ -502,7 +502,7 @@ bool Core::setCurrentProfile(const QString &profilePath)
emit m_mainWindow->updateRenderWidgetProfile();
m_monitorManager->resetProfiles();
emit m_monitorManager->updatePreviewScaling();
if (m_mainWindow->hasTimeline() && m_mainWindow->getCurrentTimeline()->model()) {
if (m_mainWindow->hasTimeline() && m_mainWindow->getCurrentTimeline() && m_mainWindow->getCurrentTimeline()->model()) {
m_mainWindow->getCurrentTimeline()->model()->updateProfile(getProjectProfile());
m_mainWindow->getCurrentTimeline()->model()->updateFieldOrderFilter(getCurrentProfile());
checkProfileValidity();
......
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