Snapshot and.. cannot overwrite currently loaded session
This commit is contained in:
parent
9c64e7d141
commit
2d99ff9703
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user