From c09c7bab525a63eda1d8a05228160f56b1c94683 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 19 Mar 2019 05:14:40 +0100 Subject: Update GUI, use Session::playlists() getter (2/2) --- gtk2_ardour/route_time_axis.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/route_time_axis.cc') diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 4092263dda..4d74f0cc7f 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1075,7 +1075,7 @@ RouteTimeAxisView::rename_current_playlist () } prompter.get_result (name); if (name.length()) { - if (_session->playlists->by_name (name)) { + if (_session->playlists()->by_name (name)) { MessageDialog msg (_("Given playlist name is not unique.")); msg.run (); prompter.set_initial_text (Playlist::bump_name (name, *_session)); @@ -1143,7 +1143,7 @@ RouteTimeAxisView::use_new_playlist (bool prompt, vectorplaylists->by_name(name)) { + while (_session->playlists()->by_name(name)) { name = Playlist::bump_name (name, *_session); } @@ -1171,7 +1171,7 @@ RouteTimeAxisView::use_new_playlist (bool prompt, vectorplaylists->by_name (name)) { + if (_session->playlists()->by_name (name)) { MessageDialog msg (_("Given playlist name is not unique.")); msg.run (); prompter.set_initial_text (Playlist::bump_name (name, *_session)); @@ -1551,7 +1551,7 @@ RouteTimeAxisView::build_playlist_menu () RadioMenuItem::Group playlist_group; boost::shared_ptr tr = track (); - vector > playlists_tr = _session->playlists->playlists_for_track (tr); + vector > playlists_tr = _session->playlists()->playlists_for_track (tr); /* sort the playlists */ PlaylistSorter cmp; @@ -1646,7 +1646,7 @@ RouteTimeAxisView::use_playlist (RadioMenuItem *item, boost::weak_ptr continue; } - boost::shared_ptr ipl = session()->playlists->by_name(playlist_name); + boost::shared_ptr ipl = session()->playlists()->by_name(playlist_name); if (!ipl) { // No playlist for this track for this take yet, make it track->use_default_new_playlist(); -- cgit v1.2.3