moved block links to node links

Seems like it might be useful to have this as part of the node architecture as a whole
This commit is contained in:
itsmattkc
2021-01-25 09:17:25 +11:00
parent 2c7e974f78
commit 7795d42347
11 changed files with 222 additions and 227 deletions
+2 -3
View File
@@ -113,9 +113,8 @@ void NodeRemoveAndDisconnectCommand::prep()
command_ = new QUndoCommand();
// If this is a block, remove all links
Block* block = dynamic_cast<Block*>(node_);
if (block) {
new BlockUnlinkAllCommand(block, command_);
if (node_->HasLinks()) {
new NodeUnlinkAllCommand(node_, command_);
}
// Disconnect everything