amend to 212d2ac5d and 8becd4413 - fix port connection matrix crash on close
authorRobin Gareus <robin@gareus.org>
Wed, 10 Jul 2013 12:19:48 +0000 (14:19 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 10 Jul 2013 13:27:13 +0000 (15:27 +0200)
gtk2_ardour/port_matrix.cc

index 0fbbc03fb0a46827f73f644b0a153b46f2ec294c..bac415d72f63760b06973c50f8f9b39bb8f3482f 100644 (file)
@@ -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 */