diff options
Diffstat (limited to 'src/gui/PortMenu.cpp')
-rw-r--r-- | src/gui/PortMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp index b9c538e1..6e15cc9a 100644 --- a/src/gui/PortMenu.cpp +++ b/src/gui/PortMenu.cpp @@ -61,10 +61,10 @@ PortMenu::init(SharedPtr<PortModel> port, bool patch_port) _destroy_menuitem->hide(); } - if (port->type() == PortType::EVENTS) + if (port->is_a(PortType::EVENTS)) _polyphonic_menuitem->hide(); - if (port->type() == PortType::CONTROL) { + if (App::instance().can_control(port.get()) && port->is_numeric()) { _learn_menuitem->show(); _unlearn_menuitem->show(); |