timeline: made ReplaceBlocksWithGaps more accessible for other parts of the program

This commit is contained in:
itsmattkc
2020-09-28 14:28:56 +10:00
parent a313fb525c
commit dac68cabc2
2 changed files with 2 additions and 7 deletions
@@ -505,16 +505,11 @@ void TimelineWidget::DeleteSelected(bool ripple)
{
QList<TimelineViewBlockItem *> selected_list = GetSelectedBlocks();
QList<Block*> blocks_to_delete;
QList<TrackReference> tracks_affected;
foreach (TimelineViewBlockItem* item, selected_list) {
Block* b = item->block();
blocks_to_delete.append(b);
if (!tracks_affected.contains(item->Track())) {
tracks_affected.append(item->Track());
}
}
// No-op if nothing is selected