In insert mode, deleting a clip should perform an extract operation.

Related to #673
parent 23e56b75
......@@ -468,7 +468,13 @@ void TimelineController::deleteSelectedClips()
return;
}
// only need to delete the first item, the others will be deleted in cascade
m_model->requestItemDeletion(*sel.begin());
if (m_model->m_editMode == TimelineMode::InsertEdit) {
// In insert mode, perform an extract operation (don't leave gaps)
extract(*sel.begin());
}
else {
m_model->requestItemDeletion(*sel.begin());
}
}
int TimelineController::getMainSelectedItem(bool restrictToCurrentPos, bool allowComposition)
......
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