when saving an unnamed session, rename it (GUI edition)

Note that this is done at the GUI level, might need to double check if there are
other paths into a "save" that should be covered. Control surfaces use the action, but
Lua comes to mind
This commit is contained in:
Paul Davis 2020-03-24 14:10:26 -06:00
parent 5f1d802307
commit 97340a5c89
4 changed files with 14 additions and 5 deletions

View file

@ -763,7 +763,7 @@ If you still wish to proceed, please use the\n\n\
*/
void
ARDOUR_UI::rename_session ()
ARDOUR_UI::rename_session (bool for_unnamed)
{
if (!_session) {
return;
@ -774,8 +774,13 @@ ARDOUR_UI::rename_session ()
prompter.set_name ("Prompter");
prompter.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
prompter.set_title (_("Rename Session"));
prompter.set_prompt (_("New session name"));
if (for_unnamed) {
prompter.set_title (_("Name Session"));
prompter.set_prompt (_("Session name"));
} else {
prompter.set_title (_("Rename Session"));
prompter.set_prompt (_("New session name"));
}
again:
switch (prompter.run()) {