Cleanup.
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
|
||||
#include "core.h"
|
||||
#include "node/input/media/media.h"
|
||||
#include "widget/timelinewidget/timelinewidget.h"
|
||||
|
||||
OLIVE_NAMESPACE_ENTER
|
||||
|
||||
|
||||
@@ -195,6 +195,9 @@ public:
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief An undo command for offlining footage when it is deleted from the project explorer
|
||||
*/
|
||||
class OfflineFootageCommand : public UndoCommand {
|
||||
public:
|
||||
OfflineFootageCommand(ProjectViewModel* model, ItemPtr item, QMap<Node*, StreamPtr> nodes, QUndoCommand* parent = nullptr);
|
||||
|
||||
@@ -588,7 +588,7 @@ QList<Block*> ProjectExplorer::GetFootageBlocks(QList<Node*> nodes)
|
||||
// For each Block see if it is linked to one of the Footage nodes add it to the delete list
|
||||
if (node->IsBlock()) {
|
||||
foreach (Node* input, nodes) {
|
||||
if (node->GetExclusiveDependencies().contains(input)) {
|
||||
if (node->GetDependencies().contains(input)) {
|
||||
blocks.append(static_cast<Block*>(node));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +124,8 @@ private:
|
||||
|
||||
/**
|
||||
* @brief Get all the blocks associated with the given footage nodes
|
||||
*
|
||||
* Currently quite brute force.
|
||||
*/
|
||||
QList<Block*> GetFootageBlocks(QList<Node*> nodes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user