From 28d7542d23181f82a62c319ff4689fc8cc2b83c0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 1 Dec 2009 13:19:50 +0000 Subject: [PATCH] don't bother doing port stuff if session is being deleted git-svn-id: svn://localhost/ardour2/branches/3.0@6240 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 4 ++++ 1 file changed, 4 insertions(+) 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);