work towards making timeline actions all undoable

This commit is contained in:
itsmattkc
2019-09-23 23:00:15 +10:00
parent d0d4756129
commit 9fa22938b9
31 changed files with 994 additions and 378 deletions
+1 -5
View File
@@ -458,11 +458,7 @@ void NodeViewItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
dragging_edge_ = nullptr;
if (node_edge_change_command_->childCount() > 0) {
olive::undo_stack.push(node_edge_change_command_);
} else {
delete node_edge_change_command_;
}
olive::undo_stack.pushIfHasChildren(node_edge_change_command_);
node_edge_change_command_ = nullptr;
return;
}