Commit 057b23cd authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on undo selected clip insert

parent fadadbfb
Pipeline #181521 passed with stage
in 15 minutes and 26 seconds
......@@ -844,7 +844,7 @@ bool TimelineModel::requestClipMove(int clipId, int trackId, int position, bool
} else {
}
}
ok = ok && getTrackById(trackId)->requestClipInsertion(clipId, position, updateView, finalMove, local_undo, local_redo, groupMove, false, allowedClipMixes);
ok = ok && getTrackById(trackId)->requestClipInsertion(clipId, position, updateView, finalMove, local_undo, local_redo, groupMove, old_trackId == -1, allowedClipMixes);
if (!ok) {
qWarning() << "clip insertion failed";
......
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