From 77a9beca75debd2d87d735fc4fe847694eee6f13 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Feb 2010 20:40:13 +0000 Subject: Work on contexts and polymorphic ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2492 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PortMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/PortMenu.cpp') 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 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(); -- cgit v1.2.1