diff options
author | David Robillard <d@drobilla.net> | 2010-02-09 01:51:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-09 01:51:04 +0000 |
commit | 157c2a866c166b94b65da442b8c54f5ffa8d6a53 (patch) | |
tree | cf7d295d2d181c182c8c441882b3a8afcc80d05d /gtk2_ardour/location_ui.cc | |
parent | b5148d93d5a9e6949f82f8685cab50cb772f2b9d (diff) |
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
Diffstat (limited to 'gtk2_ardour/location_ui.cc')
-rw-r--r-- | gtk2_ardour/location_ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 6505634a8e..1bb251999c 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -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 (); } |