| 124 | } |
| 125 | |
| 126 | AddMultipleNodesCommand::~AddMultipleNodesCommand() |
| 127 | { |
| 128 | if (_isUndone) { |
| 129 | for (std::list<NodeGuiWPtr>::iterator it = _nodes.begin(); it != _nodes.end(); ++it) { |
| 130 | NodeGuiPtr node = it->lock(); |
| 131 | if (node) { |
| 132 | node->getNode()->destroyNode(false, false); |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | setText( tr("Add node") ); |
| 137 | } |
| 138 | |
| 139 | void |
| 140 | AddMultipleNodesCommand::undo() |