a variety of fixes aimed at preventing crashes caused by the (global) port matrix (window) not really noticing that the session has gone away

git-svn-id: svn://localhost/ardour2/branches/3.0@13378 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-11-04 23:41:52 +00:00
parent 0ede2d0088
commit 204d840c43
2 changed files with 19 additions and 0 deletions

View file

@ -62,6 +62,13 @@ ARDOUR_UI::set_session (Session *s)
{
SessionHandlePtr::set_session (s);
for (ARDOUR::DataType::iterator i = ARDOUR::DataType::begin(); i != ARDOUR::DataType::end(); ++i) {
GlobalPortMatrixWindow* w;
if ((w = _global_port_matrix[*i]->get()) != 0) {
w->set_session (s);
}
}
if (!_session) {
return;
}