summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r--src/PatchageModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index 574757f..63a268c 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -147,11 +147,11 @@ PatchageModule::menu_disconnect_all()
}
PatchagePort*
-PatchageModule::get_port(const std::string& name)
+PatchageModule::get_port(const PortID& id)
{
for (Ganv::Port* p : *this) {
auto* pport = dynamic_cast<PatchagePort*>(p);
- if (pport && pport->name() == name) {
+ if (pport && pport->id() == id) {
return pport;
}
}