diff options
author | Robin Gareus <robin@gareus.org> | 2019-08-16 01:54:21 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-08-16 01:54:21 +0200 |
commit | 6dc8f5ed1d205c46fa382536766a78569d92e918 (patch) | |
tree | 7989a220e03a1a5848f1f42f1bbc57b5f2c97c04 /libs/ardour/session_state.cc | |
parent | c89e58046a09b4d8643dac0a0a6f3257c6b465bb (diff) |
Fix periodic backup saves
Retain ".pending" files until explicit save or session destruction.
Previously every transport-stop deleted them :(
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index a1c9e70fe1..1488c983e5 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -449,7 +449,6 @@ Session::session_loaded () save_state (""); } else if (state_was_pending) { save_state (""); - remove_pending_capture_state (); state_was_pending = false; } @@ -818,6 +817,10 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot fork_state = switch_to_snapshot ? SwitchToSnapshot : SnapshotKeep; } + if (!pending && !for_archive && ! template_only) { + remove_pending_capture_state (); + } + #ifndef NDEBUG const int64_t save_start_time = g_get_monotonic_time(); #endif |