mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
5f1d802307
commit
97340a5c89
4 changed files with 14 additions and 5 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue