summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index 0fbbc03fb0..bac415d72f 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -206,6 +206,8 @@ PortMatrix::routes_changed ()
void
PortMatrix::setup ()
{
+ if (!_session) return; // session went away
+
/* this needs to be done first, as the visible_ports() method uses the
notebook state to decide which ports are being shown */