Commit 73c88028 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on closing project with subtitles

parent 98bc1309
......@@ -136,6 +136,9 @@ QModelIndex TimelineItemModel::makeCompositionIndexFromID(int compoId) const
void TimelineItemModel::subtitleChanged(int subId, const QVector<int> roles)
if (m_closing) {
Q_ASSERT(m_subtitleModel != nullptr);
Q_ASSERT(m_allSubtitles.count(subId) > 0);
m_subtitleModel->updateSub(subId, roles);
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