project: remove array element when deleting a folder's subitem

Fixes #1639
This commit is contained in:
itsmattkc
2021-05-23 10:38:30 +10:00
parent 6ff9ab9f54
commit 09dc79f9f6
4 changed files with 117 additions and 55 deletions
@@ -223,6 +223,10 @@ bool ProjectExplorer::DeleteItemsInternal(const QVector<Node*>& selected, bool&
command->add_child(new CloseSequenceCommand(sequence));
}
if (node->folder()) {
command->add_child(new Folder::RemoveElementCommand(node->folder(), node));
}
command->add_child(new NodeRemoveWithExclusiveDependenciesAndDisconnect(node));
}
}