summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-25 10:24:47 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-25 10:24:47 -0600
commit1157c7d45704cdea7392c962caade327405fd6eb (patch)
tree78e69ad6e503393f32f346fe4583566808653827 /libs/ardour/session_state.cc
parentec345037b08404089f6bc6d39a9e0ad82c89d68c (diff)
if user chooses not to delete a scratch session, removed the file that identifies it as unnamed
This way they will not be asked again if they reload and then quit the session
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index df4922a4ae..59265baefe 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -5661,3 +5661,9 @@ Session::unnamed() const
{
return Glib::file_test (unnamed_file_name(), Glib::FILE_TEST_EXISTS);
}
+
+void
+Session::end_unnamed_status () const
+{
+ ::g_remove (unnamed_file_name().c_str());
+}