summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-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));
+ }
}