summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-04-06 06:14:04 +0000
committerDavid Robillard <d@drobilla.net>2014-04-06 06:14:04 +0000
commitd1678ff80fe301569215904fcd886f257136b062 (patch)
tree114aecfbd5a9697d76ccd3941103004b5722534a /src/PatchageModule.cpp
parent96442dec20443f41ba75e599fe89eb5dd338919a (diff)
downloadpatchage-d1678ff80fe301569215904fcd886f257136b062.tar.gz
patchage-d1678ff80fe301569215904fcd886f257136b062.tar.bz2
patchage-d1678ff80fe301569215904fcd886f257136b062.zip
Support port pretty names via new Jack metadata API.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5357 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r--src/PatchageModule.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index 2cdc977..b929eeb 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -147,8 +147,9 @@ PatchagePort*
PatchageModule::get_port(const std::string& name)
{
for (iterator p = begin(); p != end(); ++p) {
- if ((*p)->get_label() == name) {
- return dynamic_cast<PatchagePort*>(*p);
+ PatchagePort* pport = dynamic_cast<PatchagePort*>(*p);
+ if (pport && pport->name() == name) {
+ return pport;
}
}