13
0

Fix detection of 2.X sessions.

git-svn-id: svn://localhost/ardour2/branches/3.0@12116 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-28 13:41:55 +00:00
parent edad92a944
commit 24f4b3c135

View File

@ -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());
}