summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client')
-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