summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-31 20:34:29 +0000
committerDavid Robillard <d@drobilla.net>2013-12-31 20:34:29 +0000
commit5b282781b24ca58b65c72e3c6be1313d7974c6ed (patch)
tree5b824ea03064fecfafb2928b70b34c12ce85cc19 /src/gui
parentd05d7e4267eca39d8d54fb0d199a450b364b77c3 (diff)
downloadingen-5b282781b24ca58b65c72e3c6be1313d7974c6ed.tar.gz
ingen-5b282781b24ca58b65c72e3c6be1313d7974c6ed.tar.bz2
ingen-5b282781b24ca58b65c72e3c6be1313d7974c6ed.zip
Disallow connecting to control inputs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5243 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/GraphPortModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp
index 9f403d6b..bc38bd55 100644
--- a/src/gui/GraphPortModule.cpp
+++ b/src/gui/GraphPortModule.cpp
@@ -73,7 +73,8 @@ GraphPortModule::create(GraphCanvas& canvas,
if (model->is_numeric() && model->is_input()) {
// Add non-mirrored input so control port can be controlled from canvas
- Port::create(canvas.app(), *ret, model, human, false);
+ Port* p = Port::create(canvas.app(), *ret, model, human, false);
+ p->set_can_head(false);
}
ret->set_port(port);