Skip to content

Commit

Permalink
clip: use footage label by default rather than copied label
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Feb 22, 2023
1 parent aa2653a commit 5e29414
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/node/block/clip/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion app/widget/timelinewidget/tool/import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e29414

Please sign in to comment.