diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-24 14:10:26 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-24 14:10:39 -0600 |
commit | 97340a5c89d6100d95de2155c8c4389ac61bc528 (patch) | |
tree | d264ed0bb1e94eab22a41c9d37cb87d8f24f10e1 /gtk2_ardour/ardour_ui_session.cc | |
parent | 5f1d802307c7e68ebc39ff4d4f4a534333f98f41 (diff) |
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
Diffstat (limited to 'gtk2_ardour/ardour_ui_session.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_session.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_ui_session.cc b/gtk2_ardour/ardour_ui_session.cc index 2cd8dc5940..c659aa433a 100644 --- a/gtk2_ardour/ardour_ui_session.cc +++ b/gtk2_ardour/ardour_ui_session.cc @@ -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()) { |