summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 15:59:21 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 15:59:21 +0000
commit165031dd1ec74125362414d57afb6e51680e969b (patch)
tree243ef4afaff52d6e47142f21672836bc2e9202ea /src/gui
parent4957c342b592ac1cc2c8983d1acfe957def8b3c6 (diff)
downloadingen-165031dd1ec74125362414d57afb6e51680e969b.tar.gz
ingen-165031dd1ec74125362414d57afb6e51680e969b.tar.bz2
ingen-165031dd1ec74125362414d57afb6e51680e969b.zip
Use Builder::connect
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3557 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp10
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