diff options
author | David Robillard <d@drobilla.net> | 2020-11-29 21:48:53 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-29 21:48:53 +0100 |
commit | 7ee5802c3712bd3e2fd3047358a1cbb743bbaa88 (patch) | |
tree | 580e692f4fe35c3f95b7147df661f5c413933329 /src | |
parent | d0571d8f2999d4219feb06f395e7f3f116d2383c (diff) | |
download | patchage-7ee5802c3712bd3e2fd3047358a1cbb743bbaa88.tar.gz patchage-7ee5802c3712bd3e2fd3047358a1cbb743bbaa88.tar.bz2 patchage-7ee5802c3712bd3e2fd3047358a1cbb743bbaa88.zip |
Unconditionally remove ports on Jack driver detachment
Diffstat (limited to 'src')
-rw-r--r-- | src/Patchage.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index bde5c02..a2a9788 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -503,14 +503,12 @@ Patchage::driver_detached(const ClientType type) _menu_jack_connect->set_sensitive(true); _menu_jack_disconnect->set_sensitive(false); - if (_jack_driver && !_jack_driver->is_attached()) { - _canvas->remove_ports([](const CanvasPort* port) { - return (port->type() == PortType::jack_audio || - port->type() == PortType::jack_midi || - port->type() == PortType::jack_osc || - port->type() == PortType::jack_cv); - }); - } + _canvas->remove_ports([](const CanvasPort* port) { + return (port->type() == PortType::jack_audio || + port->type() == PortType::jack_midi || + port->type() == PortType::jack_osc || + port->type() == PortType::jack_cv); + }); break; |