From 587bdc382d3eddf0ca1092e100a7084182c1eb6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 26 Nov 2011 00:36:27 +0000 Subject: Handle adding and removing connections internally like with items. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3635 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.1