diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-18 16:04:14 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-18 16:04:41 -0600 |
commit | 08df4def52a598318d33f95d5624e7e1967ba779 (patch) | |
tree | 7cc5003ebe223332525bb89959e36c7287a0fb03 /gtk2_ardour | |
parent | f21c948f35541e9826e426abb781e73902def761 (diff) |
change the text on the "do nothing" button when closing an unnsamed session while dirty
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 92e1c81819..3ebd6ae5d3 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -312,7 +312,11 @@ ARDOUR_UI::unload_session (bool hide_stuff) if (_session && _session->dirty()) { std::vector<std::string> actions; actions.push_back (_("Don't close")); - actions.push_back (_("Just close")); + if (_session->unnamed()) { + actions.push_back (_("Discard")); + } else { + actions.push_back (_("Just close")); + } actions.push_back (_("Save and close")); switch (ask_about_saving_session (actions)) { case -1: |