summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 13:19:50 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 13:19:50 +0000
commit28d7542d23181f82a62c319ff4689fc8cc2b83c0 (patch)
tree98e8a0771df15db1f15fdfe5a37c863ec06444d2 /gtk2_ardour/port_matrix.cc
parent1e4280c9cddc1b4267725af278861aba41905329 (diff)
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
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc4
1 files changed, 4 insertions, 0 deletions
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);