From 2d99ff97037964e10015680318b5dfcc571dfb42 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 16 Sep 2024 00:37:19 +0200 Subject: [PATCH] Snapshot and.. cannot overwrite currently loaded session --- gtk2_ardour/ardour_ui_session.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/ardour_ui_session.cc b/gtk2_ardour/ardour_ui_session.cc index ed7e54e56e..0b37be1cb9 100644 --- a/gtk2_ardour/ardour_ui_session.cc +++ b/gtk2_ardour/ardour_ui_session.cc @@ -1134,6 +1134,12 @@ ARDOUR_UI::process_snapshot_session_prompter (Prompter& prompter, bool switch_to 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) { std::string const& illegal = Session::session_name_is_legal (snapname); if (!illegal.empty()) {