diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-28 14:07:48 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-28 14:08:32 +0200 |
commit | 9458fce148c862f5504d88754d5418972dd4046b (patch) | |
tree | b8fda1a75d2e0fec192f3fd6ffa9f10c1b688be3 /libs | |
parent | 20fb2bec754ad541edbf319c5b92e8c812dcbcc6 (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |