summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-10 02:21:52 +0200
committerRobin Gareus <robin@gareus.org>2017-08-10 02:26:19 +0200
commitd2d660521e80a61fca3c152f3aac20123bad2681 (patch)
tree5aee8e568a70c34cd69accd71c155be08a3f63e9 /libs/ardour/session.cc
parent8fbc2c64842d5dc637dbe16e2d312545d1cff18b (diff)
Save sample-rate for sessions created from templates
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc10
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"));
}