From 687b3078c383c34e4cd73f6073da7cc7823ecff2 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Wed, 1 Apr 2020 22:22:37 +0200 Subject: 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. --- libs/ardour/ardour/session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/ardour/session.h') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 928d2d64e0..b752bd23ea 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1472,7 +1472,7 @@ private: Glib::Threads::Mutex peak_cleanup_lock; int load_options (const XMLNode&); - int load_state (std::string snapshot_name); + int load_state (std::string snapshot_name, bool from_template = false); static int parse_stateful_loading_version (const std::string&); samplepos_t _last_roll_location; -- cgit v1.2.3