From 7ab3350c5966014f9e1dd70cb86551b635b4b8e7 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 16 May 2022 09:06:49 -0700 Subject: [PATCH] timeline: ensure tentative subtitle command is taken when dropping onto null --- app/widget/timelinewidget/tool/import.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/widget/timelinewidget/tool/import.cpp b/app/widget/timelinewidget/tool/import.cpp index be98ab2ba..bc1a5590a 100644 --- a/app/widget/timelinewidget/tool/import.cpp +++ b/app/widget/timelinewidget/tool/import.cpp @@ -384,6 +384,10 @@ void ImportTool::DropGhosts(bool insert) FootageToGhosts(0, dragged_footage_, new_sequence->GetVideoParams().time_base(), 0); + if (MultiUndoCommand *c = parent()->TakeSubtitleSectionCommand()) { + command->add_child(c); + } + sequence = new_sequence; // Set this as the sequence to open