diff options
author | David Robillard <d@drobilla.net> | 2007-04-10 14:36:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-10 14:36:50 +0000 |
commit | fa10838af240f0457097051eb2e4153772a44386 (patch) | |
tree | 46eb50e04cb8381fcd3abb8258c7738d049160f6 /src | |
parent | 441968a7932eeb1adc25e22134362176bb8c9a7b (diff) | |
download | ingen-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.cpp | 10 |
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) |