summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-27 23:58:07 +0000
committerDavid Robillard <d@drobilla.net>2007-07-27 23:58:07 +0000
commit7dd171d955067c947168db2ca88f40d60aa5abbb (patch)
tree04e5eafed51fc716f1200325290ab75ef827b1b7
parentbb1f9e95381a75951f6f4948de986553c16dace4 (diff)
downloadingen-7dd171d955067c947168db2ca88f40d60aa5abbb.tar.gz
ingen-7dd171d955067c947168db2ca88f40d60aa5abbb.tar.bz2
ingen-7dd171d955067c947168db2ca88f40d60aa5abbb.zip
Prevent teeny controllers from showing up in inappropriate ports (e.g. in patchage).
git-svn-id: http://svn.drobilla.net/lad/ingen@647 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/libs/gui/Port.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp
index 38cb42a6..49a1a7c6 100644
--- a/src/libs/gui/Port.cpp
+++ b/src/libs/gui/Port.cpp
@@ -52,7 +52,10 @@ Port::Port(boost::shared_ptr<FlowCanvas::Module> module, SharedPtr<PortModel> pm
_port_model->renamed_sig.connect(sigc::mem_fun(this, &Port::renamed));
- _port_model->control_change_sig.connect(sigc::mem_fun(this, &Port::control_changed));
+ if (pm->is_control()) {
+ show_control();
+ _port_model->control_change_sig.connect(sigc::mem_fun(this, &Port::control_changed));
+ }
}