only allow splitting clips

This commit is contained in:
itsmattkc
2020-01-07 19:04:24 +11:00
parent a616aaa182
commit d9572fa4e5
5 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ void TimelineWidget::SplitAtPlayhead()
foreach (TrackOutput* track, timeline_node_->Tracks()) {
Block* b = track->BlockContainingTime(playhead_time);
if (b) {
if (b && b->type() == Block::kClip) {
bool selected = false;
// See if this block is selected