13
0

Snapshot and.. cannot overwrite currently loaded session

This commit is contained in:
Robin Gareus 2024-09-16 00:37:19 +02:00
parent 9c64e7d141
commit 2d99ff9703
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1134,6 +1134,12 @@ ARDOUR_UI::process_snapshot_session_prompter (Prompter& prompter, bool switch_to
bool do_save = (snapname.length() != 0); bool do_save = (snapname.length() != 0);
if (do_save && snapname == _session->snap_name ()) {
ArdourMessageDialog msg (_("The currently loaded session name cannot be used as new snapshot.\nJust save the session for this operation."));
msg.run ();
return false;
}
if (do_save) { if (do_save) {
std::string const& illegal = Session::session_name_is_legal (snapname); std::string const& illegal = Session::session_name_is_legal (snapname);
if (!illegal.empty()) { if (!illegal.empty()) {