From fa10838af240f0457097051eb2e4153772a44386 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Apr 2007 14:36:50 +0000 Subject: Fixed feedback connections. git-svn-id: http://svn.drobilla.net/lad/ingen@433 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libs/client/Store.cpp') diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index f972c3ef..462b1475 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -449,14 +449,16 @@ Store::connection_patch(const Path& src_port_path, const Path& dst_port_path) { SharedPtr patch; - // Connection between patch ports if (src_port_path.parent() == dst_port_path.parent()) patch = PtrCast(this->object(src_port_path.parent())); - else if (src_port_path.parent() == dst_port_path.parent().parent()) + + if (!patch && src_port_path.parent() == dst_port_path.parent().parent()) patch = PtrCast(this->object(src_port_path.parent())); - else if (src_port_path.parent().parent() == dst_port_path.parent()) + + if (!patch && src_port_path.parent().parent() == dst_port_path.parent()) patch = PtrCast(this->object(dst_port_path.parent())); - else + + if (!patch) patch = PtrCast(this->object(src_port_path.parent().parent())); if (!patch) -- cgit v1.2.1