summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-15 20:18:05 +0000
committerDavid Robillard <d@drobilla.net>2006-09-15 20:18:05 +0000
commitfb32a8540d56276a97878c0ae246a11ac23af753 (patch)
treebf4b0280f5616f8c660fd6bee129503e256824a3
parente4009fa2d9953f00d0a37b1c90b0be5efb937c21 (diff)
downloadingen-fb32a8540d56276a97878c0ae246a11ac23af753.tar.gz
ingen-fb32a8540d56276a97878c0ae246a11ac23af753.tar.bz2
ingen-fb32a8540d56276a97878c0ae246a11ac23af753.zip
Fix for connections to patch ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@138 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/libs/client/PatchModel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp
index c332cba6..a0e94ba4 100644
--- a/src/libs/client/PatchModel.cpp
+++ b/src/libs/client/PatchModel.cpp
@@ -234,8 +234,11 @@ PatchModel::add_connection(CountedPtr<ConnectionModel> cm)
// Store should have 'resolved' the connection already
assert(cm);
assert(cm->patch_path() == path());
- assert(cm->src_port() && cm->src_port()->parent()->parent().get() == this);
- assert(cm->dst_port() && cm->dst_port()->parent()->parent().get() == this);
+ assert(cm->src_port());
+ assert(cm->src_port()->parent()->parent().get() == this
+ || cm->src_port()->parent().get() == this);
+ assert(cm->dst_port()->parent()->parent().get() == this
+ || cm->dst_port()->parent().get() == this);
CountedPtr<ConnectionModel> existing = get_connection(cm->src_port_path(), cm->dst_port_path());
assert(!existing); // Store should have handled this