diff options
Diffstat (limited to 'src/libs/gui/Port.cpp')
-rw-r--r-- | src/libs/gui/Port.cpp | 5 |
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)); + } } |