From 069bf034abf191ef2b3cb7e442b4588593542d39 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 13 Mar 2024 03:54:52 +0100 Subject: [PATCH] Accumulate IO port-change signals return values This was already done for IO::remove_port, but not yet for ::add_port --- libs/ardour/io.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 861e6662c6..765d5542b9 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -306,8 +306,8 @@ IO::add_port (string destination, void* src, DataType type) ChanCount after = before; after.set (type, after.get (type) + 1); - bool const r = PortCountChanging (after); /* EMIT SIGNAL */ - if (r) { + boost::optional const r = PortCountChanging (after); /* EMIT SIGNAL */ + if (r.value_or (false)) { return -1; }