From 0f8bd14d3487c35280c33bbfd133dd9e37c8f07e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 15:58:38 +0100 Subject: Index clients and ports by ID --- src/PatchageModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PatchageModule.cpp') 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(p); - if (pport && pport->name() == name) { + if (pport && pport->id() == id) { return pport; } } -- cgit v1.2.1