Commit 0074ecb0 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on document close

parent a94846c4
......@@ -276,11 +276,12 @@ bool ProjectManager::closeCurrentDocument(bool saveChanges, bool quit)
}
}
pCore->window()->getMainTimeline()->unsetModel();
pCore->bin()->cleanDocument();
pCore->window()->resetSubtitles();
if (m_mainTimelineModel) {
m_mainTimelineModel->prepareClose();
}
pCore->bin()->cleanDocument();
if (!quit && !qApp->isSavingSession()) {
if (m_project) {
emit pCore->window()->clearAssetPanel();
......
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