13
0

Rec-stop only writes a pending (recovery) file (#9215)

This is consistent, since after handling the
`SaveSessionRequested` signal the session remains dirty
(which may be a bug). However since the signal is handled
by the GUI, rec-stop only saves the session if there is a GUI.

It is however somewhat dangerous. Record, quit + no-save (or
changing snapshots w/o saving first) will loose any references
to the recorded data (even though it is still on disk).

Note that "remove last capture" still saves the session
(to prevent references to non-existent sources).
This commit is contained in:
Robin Gareus 2023-02-03 07:56:49 +01:00
parent 054e1c3c12
commit 14606ac655
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1324,7 +1324,7 @@ void
ARDOUR_UI::save_session_at_its_request (std::string snapshot_name)
{
if (_session) {
_session->save_state (snapshot_name);
_session->save_state (snapshot_name, true);
}
}