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.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.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 6f9c544db4..52da9f9615 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2024,6 +2024,10 @@ ARDOUR_UI::save_state (const string & name, bool switch_to_it) return; } + if (_session->unnamed()) { + rename_session (true); + } + XMLNode* node = new XMLNode (X_("UI")); WM::Manager::instance().add_state (*node); |