diff options
-rw-r--r-- | src/gui/PatchCanvas.cpp | 10 | ||||
-rw-r--r-- | src/shared/ClashAvoider.hpp | 1 |
2 files changed, 1 insertions, 10 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 diff --git a/src/shared/ClashAvoider.hpp b/src/shared/ClashAvoider.hpp index 87fd106a..6c8e2018 100644 --- a/src/shared/ClashAvoider.hpp +++ b/src/shared/ClashAvoider.hpp @@ -21,7 +21,6 @@ #include <inttypes.h> #include <map> -#include <string> #include "ingen/CommonInterface.hpp" |