diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-28 13:41:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-28 13:41:55 +0000 |
commit | 24f4b3c1357dabc03dd849faccdefa798ffbdd5e (patch) | |
tree | 4fd88c34a28c46f2c460f0d552f115d98f49dbbf /libs | |
parent | edad92a9445e0b6efd9c1220dd37f02e27bcdee2 (diff) |
Fix detection of 2.X sessions.
git-svn-id: svn://localhost/ardour2/branches/3.0@12116 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 48e7f206e7..2f67915ce5 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -926,8 +926,12 @@ Session::load_state (string snapshot_name) Stateful::loading_state_version = 1000; } else { if (prop->value().find ('.')) { - /* old school version format - lock at 3000 */ - Stateful::loading_state_version = 3000; + /* old school version format */ + if (prop->value()[0] == '2') { + Stateful::loading_state_version = 2000; + } else { + Stateful::loading_state_version = 3000; + } } else { Stateful::loading_state_version = atoi (prop->value()); } |