From 57af42ef84d9397776b5ba1aeb8cac645016a783 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 16 Oct 2022 04:27:26 +0200 Subject: [PATCH] Do not show I/O plugin port in the matrix that cannot be connected --- gtk2_ardour/port_group.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index 3ba1bed176..6b24ff94f5 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -566,7 +566,10 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp for (auto const& iop : *session->io_plugs ()) { boost::shared_ptr io = inputs ? iop->input() : iop->output(); - if (io->n_ports().get (type) > 0) { + if (io->n_ports().n_total () == 0) { + continue; + } + if (type == DataType::NIL || io->n_ports().get (type) > 0) { ioplugin->add_bundle (io->bundle(), io); } }