mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
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
This commit is contained in:
parent
ec345037b0
commit
1157c7d457
2 changed files with 9 additions and 1 deletions
|
|
@ -242,9 +242,11 @@ public:
|
|||
bool loading () const { return _state_of_the_state & Loading; }
|
||||
bool cannot_save () const { return _state_of_the_state & CannotSave; }
|
||||
bool in_cleanup () const { return _state_of_the_state & InCleanup; }
|
||||
bool inital_connect_or_deletion_in_progress () { return _state_of_the_state & (InitialConnecting | Deletion); }
|
||||
bool inital_connect_or_deletion_in_progress () const { return _state_of_the_state & (InitialConnecting | Deletion); }
|
||||
bool unnamed() const;
|
||||
|
||||
void end_unnamed_status () const;
|
||||
|
||||
PBD::Signal0<void> DirtyChanged;
|
||||
|
||||
const SessionDirectory& session_directory () const { return *(_session_dir.get()); }
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue