From 9458fce148c862f5504d88754d5418972dd4046b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 28 Aug 2015 14:07:48 +0200 Subject: pre-seed session-state-version. copying/paste of many objects use ::set_state(, version) to set the the state of the copy. Stateful::loading_state_version is used for state-version in those cases. This fails for a New Session (version==0) or when creating a New Session after loading an Ardour2 session. --- libs/ardour/session.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs') diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 29e0777cfa..85a2c67f43 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -305,6 +305,8 @@ Session::Session (AudioEngine &eng, if (_is_new) { + Stateful::loading_state_version = CURRENT_SESSION_FILE_VERSION; + #ifdef USE_TRACKS_CODE_FEATURES sr = EngineStateController::instance()->get_current_sample_rate(); #endif -- cgit v1.2.3