Make Offlining footage an UndoCommand

Created a new UndoCommand in ProjectViewModel that set the footage
input to a nullptr and resets it to the correct stream on undo.
This commit is contained in:
Thomas Wilshaw
2020-09-28 14:33:58 +01:00
parent c1e345611d
commit 5bb9cb0cca
4 changed files with 75 additions and 13 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ private:
* @brief Check if an item is in use anywhere and return any relevant input nodes
* Returns a QList as Footage has two streams that need to be handled
*/
QList<Node*> GetFootageNodes(Item* item);
QMap<Node*, StreamPtr> GetFootageNodes(Item* item);
/**
* @brief Simple convenience function for adding a view to this stacked widget