timeline: implemented some base ripple delete functionality

This commit is contained in:
itsmattkc
2020-03-07 18:07:55 +11:00
parent d5fdc555e1
commit 38a30b584a
7 changed files with 148 additions and 20 deletions
+5 -3
View File
@@ -216,10 +216,12 @@ void TimelineWidget::PointerTool::MouseReleaseInternal(TimelineViewMouseEvent *e
}
}
// If there are any blocks to remove, remove them
parent()->DeleteSelectedInternal(blocks_to_temp_remove, false, false, command);
bool inserting = (event->GetModifiers() & Qt::ControlModifier);
if (event->GetModifiers() & Qt::ControlModifier) {
// If there are any blocks to remove, remove them
parent()->DeleteSelectedInternal(blocks_to_temp_remove, false, false, inserting, command);
if (inserting) {
// Make room to insert clips to
InsertGapsAtGhostDestination(parent()->ghost_items_, command);
}