diff options
Diffstat (limited to 'src/gui/PatchCanvas.cpp')
-rw-r--r-- | src/gui/PatchCanvas.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index d8d89651..befb706d 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -728,15 +728,7 @@ PatchCanvas::paste() builder.build(i->second); } - // Successful connections - SharedPtr<const PatchModel> root = PtrCast<const PatchModel>( - clipboard.object(_patch->path())); - assert(root); - for (Patch::Connections::const_iterator i = root->connections().begin(); - i != root->connections().end(); ++i) { - App::instance().engine()->connect(i->second->src_port_path(), - i->second->dst_port_path()); - } + builder.connect(PtrCast<const PatchModel>(clipboard.object(_patch->path()))); } void |