Commit 0e833e9c authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on project close

Related to #1019
parent f5f1c670
......@@ -96,14 +96,17 @@ TimelineController::~TimelineController()
void TimelineController::prepareClose()
// Clear roor so we don't call its methods anymore
// Clear root so we don't call its methods anymore
QObject::disconnect( m_deleteConnection );
disconnect(this, &TimelineController::selectionChanged, this, &TimelineController::updateClipActions);
disconnect(this, &TimelineController::videoTargetChanged, this, &TimelineController::updateVideoTarget);
disconnect(this, &TimelineController::audioTargetChanged, this, &TimelineController::updateAudioTarget);
m_ready = false;
m_root = nullptr;
// Delete timeline preview before resetting model so that removing clips from timeline doesn't invalidate
delete m_timelinePreview;
m_timelinePreview = nullptr;
void TimelineController::setModel(std::shared_ptr<TimelineItemModel> model)
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