diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-14 09:48:49 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-14 09:48:49 +0000 |
commit | 34cd0f84192224a425fe47030a0e399399b9d7e1 (patch) | |
tree | b6ebad64301f2d2dd0911218204ee3de59fa39e1 /gtk2_ardour/port_matrix.cc | |
parent | 33ba28e2e22e5aebd8d4f5d3f5bffb388ead38e2 (diff) |
Fix crash on close.
git-svn-id: svn://localhost/ardour2/branches/3.0@12719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 7f0d9fb9f3..8465cdcd32 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -969,6 +969,10 @@ PortMatrix::port_connected_or_disconnected () void PortMatrix::update_tab_highlighting () { + if (!_session) { + return; + } + for (int i = 0; i < 2; ++i) { Gtk::Notebook* notebook = row_index() == i ? &_vnotebook : &_hnotebook; |