timeline: don't try to link if no clips are selected

This commit is contained in:
itsmattkc
2020-11-20 19:36:43 +11:00
parent 6147bc6846
commit e4f011831d
+4 -4
View File
@@ -599,11 +599,11 @@ void TimelineWidget::ToggleLinksOnSelected()
blocks.append(item->block());
}
if (link) {
Core::instance()->undo_stack()->push(new BlockLinkManyCommand(blocks, true));
} else {
Core::instance()->undo_stack()->push(new BlockLinkManyCommand(blocks, false));
if (blocks.isEmpty()) {
return;
}
Core::instance()->undo_stack()->push(new BlockLinkManyCommand(blocks, link));
}
void TimelineWidget::CopySelected(bool cut)