diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-11 09:59:56 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-11 09:59:56 -0400 |
commit | 7c719e441a834067c1b35e51f891fd4c1a252e76 (patch) | |
tree | 843ef991de9046024454df7e8b10c5e814ee18da /libs/ardour/session_state.cc | |
parent | d305dc1e0c3b04c6b014e443c3234d7864d73073 (diff) |
fix handling of new session
defer save state till after everything done in post_engine_init() is complete.
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index b4364f4c13..dbb2d4edcd 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -312,8 +312,10 @@ Session::post_engine_init () DirtyChanged (); /* EMIT SIGNAL */ - if (state_was_pending) { - save_state (_current_snapshot_name); + if (_is_new) { + save_state (""); + } else if (state_was_pending) { + save_state (""); remove_pending_capture_state (); state_was_pending = false; } @@ -546,8 +548,6 @@ Session::create (const string& session_template, BusProfile* bus_profile) add_monitor_section (); } - save_state (""); - return 0; } |