diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2020-04-01 22:22:37 +0200 |
---|---|---|
committer | Johannes Mueller <github@johannes-mueller.org> | 2020-04-02 14:33:21 +0200 |
commit | 687b3078c383c34e4cd73f6073da7cc7823ecff2 (patch) | |
tree | f01ede01dda692e327b37bd61d5b517e6e514ded /libs/ardour/session.cc | |
parent | 1439610f959284c00ae0f1fd8b81a5d3253bbd6b (diff) |
Don't issue VersionMismatch when creating a new session
When we create a new session and are using a template from an old version of
Ardour, we should not issue the VersionMismatch dialog and not make a copy of
the session file for the old version.
We need to extend the signature of Session::load_state() to tell it if we are
creating a session from a template. Session::_is_new cannot be used for it
because it has a the semantics if to auto connect the the master bus.
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 7a36c3e61e..1dedb86ade 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -363,7 +363,7 @@ Session::Session (AudioEngine &eng, if (!mix_template.empty()) { try { - if (load_state (_current_snapshot_name)) { + if (load_state (_current_snapshot_name, /* from_template = */ true)) { throw SessionException (_("Failed to load template/snapshot state")); } } catch (PBD::unknown_enumeration& e) { |