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
@@ -340,11 +340,7 @@ bool ProjectViewModel::dropMimeData(const QMimeData *data, Qt::DropAction action
}
}
if (move_command->childCount() > 0) {
olive::undo_stack.push(move_command);
} else {
delete move_command;
}
olive::undo_stack.pushIfHasChildren(move_command);
return true;