fixed bug where the node remove with exclusive deps command would never run

This commit is contained in:
itsmattkc
2020-01-17 13:56:45 +11:00
parent 0bc176fd62
commit f8f932112c
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -130,8 +130,6 @@ bool Decoder::ProbeMedia(Footage *f)
// Start an index task
foreach (StreamPtr stream, f->streams()) {
qDebug() << "Starting index task on" << stream->footage()->filename() << stream->index();
IndexTask* index_task = new IndexTask(stream);
TaskManager::instance()->AddTask(index_task);
}
-1
View File
@@ -255,6 +255,5 @@ void Sequence::set_default_parameters()
void Sequence::NameChangedEvent(const QString &name)
{
qDebug() << "Setting viewer output name to" << name;
viewer_output_->set_media_name(name);
}
+2 -1
View File
@@ -126,7 +126,8 @@ void NodeRemoveCommand::undo()
edges_.clear();
}
NodeRemoveWithExclusiveDeps::NodeRemoveWithExclusiveDeps(NodeGraph *graph, Node *node, QUndoCommand *parent)
NodeRemoveWithExclusiveDeps::NodeRemoveWithExclusiveDeps(NodeGraph *graph, Node *node, QUndoCommand *parent) :
QUndoCommand(parent)
{
QList<Node*> node_and_its_deps;
node_and_its_deps.append(node);