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

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

Related to #673
parent a5e5af96
Pipeline #26843 passed with stage
in 9 minutes and 47 seconds
...@@ -468,7 +468,13 @@ void TimelineController::deleteSelectedClips() ...@@ -468,7 +468,13 @@ void TimelineController::deleteSelectedClips()
return; return;
} }
// only need to delete the first item, the others will be deleted in cascade // 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) 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