diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index f36287836a..5a78d7f8d3 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -484,6 +484,10 @@ PortMatrix::setup_global_ports () void PortMatrix::setup_all_ports () { + if (_session.deletion_in_progress()) { + return; + } + ENSURE_GUI_THREAD (mem_fun (*this, &PortMatrix::setup_all_ports)); setup_ports (0);