mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Playlist UI tweaks: always prompt the user for a new playlist name, not just for grouped playlists
This commit is contained in:
parent
892d641987
commit
561aef3736
3 changed files with 5 additions and 5 deletions
|
|
@ -4401,13 +4401,13 @@ Editor::clear_playlists (RouteUI* rui)
|
||||||
void
|
void
|
||||||
Editor::mapped_use_new_playlist (RouteUI& rui, uint32_t sz, vector<boost::shared_ptr<ARDOUR::Playlist> > const & playlists)
|
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
|
void
|
||||||
Editor::mapped_use_copy_playlist (RouteUI& rui, uint32_t sz, vector<boost::shared_ptr<ARDOUR::Playlist> > const & playlists)
|
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
|
void
|
||||||
|
|
|
||||||
|
|
@ -2435,7 +2435,7 @@ RouteUI::resolve_new_group_playlist_name (std::string const& basename, vector<bo
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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;
|
string name;
|
||||||
|
|
||||||
|
|
@ -2459,7 +2459,7 @@ RouteUI::use_new_playlist (bool prompt, vector<boost::shared_ptr<Playlist> > con
|
||||||
name = Playlist::bump_name (name, *_session);
|
name = Playlist::bump_name (name, *_session);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prompt) {
|
{
|
||||||
// TODO: The prompter "new" button should be de-activated if the user
|
// TODO: The prompter "new" button should be de-activated if the user
|
||||||
// specifies a playlist name which already exists in the session.
|
// specifies a playlist name which already exists in the session.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ public:
|
||||||
void fan_out (bool to_busses = true, bool group = true);
|
void fan_out (bool to_busses = true, bool group = true);
|
||||||
|
|
||||||
/* The editor calls these when mapping an operation across multiple tracks */
|
/* 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 clear_playlist ();
|
||||||
|
|
||||||
void use_playlist (Gtk::RadioMenuItem* item, boost::weak_ptr<ARDOUR::Playlist> wpl);
|
void use_playlist (Gtk::RadioMenuItem* item, boost::weak_ptr<ARDOUR::Playlist> wpl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue