summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchPortModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-21 04:32:06 +0000
committerDavid Robillard <d@drobilla.net>2007-09-21 04:32:06 +0000
commitc4eeee858baf6675e9d0c5ef175dbe89f951745e (patch)
treeabeb1e5df7c167ecc68e3c743d0b826431013326 /src/libs/gui/PatchPortModule.cpp
parenta1e97211b02cc1cd9509617cd3452d731ad7b512 (diff)
downloadingen-c4eeee858baf6675e9d0c5ef175dbe89f951745e.tar.gz
ingen-c4eeee858baf6675e9d0c5ef175dbe89f951745e.tar.bz2
ingen-c4eeee858baf6675e9d0c5ef175dbe89f951745e.zip
Show context menu for patch ports when clicking on anonymous module, as well as actual port.
git-svn-id: http://svn.drobilla.net/lad/ingen@746 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchPortModule.cpp')
-rw-r--r--src/libs/gui/PatchPortModule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/gui/PatchPortModule.cpp b/src/libs/gui/PatchPortModule.cpp
index f52785a4..863fc55e 100644
--- a/src/libs/gui/PatchPortModule.cpp
+++ b/src/libs/gui/PatchPortModule.cpp
@@ -72,6 +72,8 @@ PatchPortModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<PortMod
ret->_patch_port = boost::shared_ptr<Port>(new Port(ret, port, true));
ret->add_port(ret->_patch_port);
+
+ ret->set_menu(ret->_patch_port->menu());
for (MetadataMap::const_iterator m = port->metadata().begin(); m != port->metadata().end(); ++m)
ret->metadata_update(m->first, m->second);