mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Accumulate IO port-change signals return values
This was already done for IO::remove_port, but not yet for ::add_port
This commit is contained in:
parent
16fb29d576
commit
069bf034ab
1 changed files with 2 additions and 2 deletions
|
|
@ -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<bool> const r = PortCountChanging (after); /* EMIT SIGNAL */
|
||||
if (r.value_or (false)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue