summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-26 00:36:27 +0000
committerDavid Robillard <d@drobilla.net>2011-11-26 00:36:27 +0000
commit587bdc382d3eddf0ca1092e100a7084182c1eb6e (patch)
tree7c0be8df0433f5f48aabf40216a4c6bd77458a20 /src
parente0531f8b98b9a17126c793408048858adc39715b (diff)
downloadingen-587bdc382d3eddf0ca1092e100a7084182c1eb6e.tar.gz
ingen-587bdc382d3eddf0ca1092e100a7084182c1eb6e.tar.bz2
ingen-587bdc382d3eddf0ca1092e100a7084182c1eb6e.zip
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
Diffstat (limited to 'src')
-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;