Playlist UI tweaks: always prompt the user for a new playlist name, not just for grouped playlists

This commit is contained in:
Ben Loftis 2021-05-28 07:43:46 -05:00
parent 892d641987
commit 561aef3736
3 changed files with 5 additions and 5 deletions

View File

@ -4401,13 +4401,13 @@ Editor::clear_playlists (RouteUI* rui)
void
Editor::mapped_use_new_playlist (RouteUI& rui, uint32_t sz, vector<boost::shared_ptr<ARDOUR::Playlist> > const & playlists)
{
rui.use_new_playlist (sz > 1 ? false : true, playlists, false);
rui.use_new_playlist (playlists, false);
}
void
Editor::mapped_use_copy_playlist (RouteUI& rui, uint32_t sz, vector<boost::shared_ptr<ARDOUR::Playlist> > const & playlists)
{
rui.use_new_playlist (sz > 1 ? false : true, playlists, true);
rui.use_new_playlist (playlists, true);
}
void

View File

@ -2435,7 +2435,7 @@ RouteUI::resolve_new_group_playlist_name (std::string const& basename, vector<bo
}
void
RouteUI::use_new_playlist (bool prompt, vector<boost::shared_ptr<Playlist> > const& playlists_before_op, bool copy)
RouteUI::use_new_playlist (vector<boost::shared_ptr<Playlist> > const& playlists_before_op, bool copy)
{
string name;
@ -2459,7 +2459,7 @@ RouteUI::use_new_playlist (bool prompt, vector<boost::shared_ptr<Playlist> > con
name = Playlist::bump_name (name, *_session);
}
if (prompt) {
{
// TODO: The prompter "new" button should be de-activated if the user
// specifies a playlist name which already exists in the session.

View File

@ -158,7 +158,7 @@ public:
void fan_out (bool to_busses = true, bool group = true);
/* The editor calls these when mapping an operation across multiple tracks */
void use_new_playlist (bool prompt, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const&, bool copy);
void use_new_playlist (std::vector<boost::shared_ptr<ARDOUR::Playlist> > const&, bool copy);
void clear_playlist ();
void use_playlist (Gtk::RadioMenuItem* item, boost::weak_ptr<ARDOUR::Playlist> wpl);