summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 4f3afe8f..debdb7a6 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -470,9 +470,8 @@ PatchCanvas::connection(SharedPtr<const ConnectionModel> cm)
FlowCanvas::Port* const dst = get_port_view(cm->dst_port());
if (src && dst) {
- add_connection(
- new GUI::Connection(*this, cm, src, dst,
- src->color() + 0x22222200));
+ new GUI::Connection(*this, cm, src, dst,
+ src->color() + 0x22222200);
} else {
LOG(error) << "Unable to find ports to connect "
<< cm->src_port_path() << " -> " << cm->dst_port_path() << endl;