summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-10 14:36:50 +0000
committerDavid Robillard <d@drobilla.net>2007-04-10 14:36:50 +0000
commitfa10838af240f0457097051eb2e4153772a44386 (patch)
tree46eb50e04cb8381fcd3abb8258c7738d049160f6 /src
parent441968a7932eeb1adc25e22134362176bb8c9a7b (diff)
downloadingen-fa10838af240f0457097051eb2e4153772a44386.tar.gz
ingen-fa10838af240f0457097051eb2e4153772a44386.tar.bz2
ingen-fa10838af240f0457097051eb2e4153772a44386.zip
Fixed feedback connections.
git-svn-id: http://svn.drobilla.net/lad/ingen@433 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/libs/client/Store.cpp10
1 files changed, 6 insertions, 4 deletions
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<PatchModel> patch;
- // Connection between patch ports
if (src_port_path.parent() == dst_port_path.parent())
patch = PtrCast<PatchModel>(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<PatchModel>(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<PatchModel>(this->object(dst_port_path.parent()));
- else
+
+ if (!patch)
patch = PtrCast<PatchModel>(this->object(src_port_path.parent().parent()));
if (!patch)