clip: use footage label by default rather than copied label

This commit is contained in:
itsmattkc
2023-02-21 19:44:26 -08:00
parent aa2653a583
commit 5e29414dce
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ ClipBlock::ClipBlock() :
QString ClipBlock::Name() const
{
if (track()) {
if (connected_viewer_ && !connected_viewer_->GetLabel().isEmpty()) {
return connected_viewer_->GetLabel();
} else if (track()) {
if (track()->type() == Track::kVideo) {
return tr("Video Clip");
} else if (track()->type() == Track::kAudio) {
@@ -424,7 +424,6 @@ void ImportTool::DropGhosts(bool insert, MultiUndoCommand *parent_command)
ClipBlock* clip = new ClipBlock();
block = clip;
clip->set_media_in(ghost->GetMediaIn());
clip->SetLabel(footage_stream.footage->GetLabel());
command->add_child(new NodeAddCommand(dst_graph, clip));
// Position clip in its own context