summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-22 05:52:59 +0000
committerDavid Robillard <d@drobilla.net>2008-11-22 05:52:59 +0000
commitb0d6d38f9bfb33916b17f20cbeae30cd1f05007b (patch)
tree27c50e00e11c0e0c979d862789addd05982a46c6
parent830a9b4ba0caa521289730eddd7bcb903b7662d3 (diff)
downloadingen-b0d6d38f9bfb33916b17f20cbeae30cd1f05007b.tar.gz
ingen-b0d6d38f9bfb33916b17f20cbeae30cd1f05007b.tar.bz2
ingen-b0d6d38f9bfb33916b17f20cbeae30cd1f05007b.zip
Hide polyphonic menu entry for event ports (fix ticket #270).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1761 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/PortMenu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index ea9b2dc9..195d6af3 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -46,6 +46,9 @@ PortMenu::init(SharedPtr<PortModel> port, bool patch_port)
_rename_menuitem->hide();
_destroy_menuitem->hide();
}
+
+ if (port->type() == DataType::EVENT)
+ _polyphonic_menuitem->hide();
_enable_signal = true;
}