diff options
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 0abe1b652e..efdac5eae3 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -661,7 +661,7 @@ Session::remove_state (string snapshot_name) } int -Session::save_state (string snapshot_name, bool pending) +Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot) { XMLTree tree; string xml_path; @@ -681,6 +681,8 @@ Session::save_state (string snapshot_name, bool pending) if (snapshot_name.empty()) { snapshot_name = _current_snapshot_name; + } else if (switch_to_snapshot) { + _current_snapshot_name = snapshot_name; } if (!pending) { |