Skip duplicate early session-save for new sessions
authorRobin Gareus <robin@gareus.org>
Thu, 5 Sep 2019 15:00:14 +0000 (17:00 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 5 Sep 2019 15:00:14 +0000 (17:00 +0200)
Identical code is called unconditionally at the end of
the Session c'tor via Session::session_loaded()

libs/ardour/session_state.cc

index 02021dd31b14fbfdf9277e1d004bcae6b09aa6bc..5bf6f924381dc8e325a0b3afa5044a41a9e42e08 100644 (file)
@@ -413,14 +413,6 @@ Session::post_engine_init ()
 
        DirtyChanged (); /* EMIT SIGNAL */
 
-       if (_is_new) {
-               save_state ("");
-       } else if (state_was_pending) {
-               save_state ("");
-               remove_pending_capture_state ();
-               state_was_pending = false;
-       }
-
        /* Now, finally, we can fill the playback buffers */
 
        BootMessage (_("Filling playback buffers"));