Commit 880a5431 authored by Nicolas Carion's avatar Nicolas Carion

fix segmentation fault on clip deletion

parent 915040d7
......@@ -1245,7 +1245,8 @@ QList <int> ProjectClip::timelineInstances() const
bool ProjectClip::selfSoftDelete(Fun &undo, Fun &redo)
{
for (const auto &clip : m_registeredClips) {
auto toDelete = m_registeredClips; //we cannot use m_registeredClips directly, because it will be modified during loop
for (const auto &clip : toDelete) {
if (auto timeline = clip.second.lock()) {
timeline->requestClipDeletion(clip.first, undo, redo);
} else {
......
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