From c6f8002561fb69b54ba5a7b6bd5ebb1c7033d565 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 23 Feb 2024 22:02:48 +0100 Subject: [PATCH] Discard untitled sessions even when not quitting Ardour --- gtk2_ardour/ardour_ui_dialogs.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index b83806b7d0..89a14a5c7e 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -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 (); }