add opening sequence to the import undo command

This commit is contained in:
itsmattkc
2021-01-29 18:11:01 +11:00
parent b748b1142b
commit 29eccf8e84
4 changed files with 93 additions and 4 deletions
+5 -4
View File
@@ -37,6 +37,7 @@
#include "project/item/sequence/sequence.h"
#include "widget/nodeview/nodeviewundo.h"
#include "window/mainwindow/mainwindow.h"
#include "window/mainwindow/mainwindowundo.h"
namespace olive {
@@ -472,14 +473,14 @@ void ImportTool::DropGhosts(bool insert)
}
}
if (open_sequence) {
command->add_child(new OpenSequenceCommand(open_sequence));
}
Core::instance()->undo_stack()->pushIfHasChildren(command);
parent()->ClearGhosts();
dragged_footage_.clear();
if (open_sequence) {
Core::instance()->main_window()->OpenSequence(open_sequence);
}
}
ImportTool::DraggedFootage ImportTool::FootageToDraggedFootage(Footage *f)