From 165031dd1ec74125362414d57afb6e51680e969b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Oct 2011 15:59:21 +0000 Subject: Use Builder::connect git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3557 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gui') 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 root = PtrCast( - 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(clipboard.object(_patch->path()))); } void -- cgit v1.2.1