Discard untitled sessions even when not quitting Ardour

This commit is contained in:
Robin Gareus 2024-02-23 22:02:48 +01:00
parent e94e7b6dc7
commit c6f8002561
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 5 additions and 0 deletions

View File

@ -334,8 +334,13 @@ ARDOUR_UI::unload_session (bool hide_stuff, bool force_unload)
break;
case 0:
// discard/don't save
if (_session->unnamed()) {
ask_about_scratch_deletion ();
}
break;
}
} else if (!force_unload && _session && _session->unnamed()) {
ask_about_scratch_deletion ();
}