From 7ee5802c3712bd3e2fd3047358a1cbb743bbaa88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Nov 2020 21:48:53 +0100 Subject: Unconditionally remove ports on Jack driver detachment --- src/Patchage.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/Patchage.cpp') 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; -- cgit v1.2.1