Fix crash when setting loop or punch range after creating a new session (and probably...
authorDavid Robillard <d@drobilla.net>
Tue, 9 Feb 2010 01:51:04 +0000 (01:51 +0000)
committerDavid Robillard <d@drobilla.net>
Tue, 9 Feb 2010 01:51:04 +0000 (01:51 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6658 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/location_ui.cc

index 6505634a8e5048d92f05ed3212a3f8b22fc52092..1bb251999c587760625177527b8ff55a341eea94 100644 (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 ();
 }