diff options
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 764e05c3e8..19ca9ceea9 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -510,8 +510,16 @@ Session::Session (AudioEngine &eng, ensure_subdirs (); // archived or zipped sessions may lack peaks/ analysis/ etc - _is_new = false; + if (!mix_template.empty ()) { + /* ::create() unsets _is_new after creating the session. + * But for templated sessions, the sample-rate is initially unset + * (not read from template), so we need to save it (again). + */ + _is_new = true; + } + session_loaded (); + _is_new = false; BootMessage (_("Session loading complete")); } |