Commit 87637ac4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible crash on quit

parent 47a0961d
......@@ -88,7 +88,6 @@ TimelineController::TimelineController(QObject *parent)
TimelineController::~TimelineController()
{
prepareClose();
}
void TimelineController::prepareClose()
......@@ -96,6 +95,7 @@ void TimelineController::prepareClose()
// Clear root so we don't call its methods anymore
QObject::disconnect( m_deleteConnection );
disconnect(this, &TimelineController::selectionChanged, this, &TimelineController::updateClipActions);
disconnect(m_model.get(), &TimelineModel::selectionChanged, this, &TimelineController::selectionChanged);
disconnect(this, &TimelineController::videoTargetChanged, this, &TimelineController::updateVideoTarget);
disconnect(this, &TimelineController::audioTargetChanged, this, &TimelineController::updateAudioTarget);
m_ready = false;
......
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