Fix crash when setting loop or punch range after creating a new session (and probably any scenario where the session changes).

git-svn-id: svn://localhost/ardour2/branches/3.0@6658 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2010-02-09 01:51:04 +00:00
parent b5148d93d5
commit 157c2a866c
1 changed files with 3 additions and 0 deletions

View File

@ -866,6 +866,9 @@ LocationUI::set_session(ARDOUR::Session* s)
_session->locations()->removed.connect (_session_connections, ui_bind (&LocationUI::location_removed, this, _1), gui_context());
}
loop_edit_row.set_session (s);
punch_edit_row.set_session (s);
refresh_location_list ();
}