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:
parent
edad92a944
commit
24f4b3c135
@ -926,8 +926,12 @@ Session::load_state (string snapshot_name)
|
|||||||
Stateful::loading_state_version = 1000;
|
Stateful::loading_state_version = 1000;
|
||||||
} else {
|
} else {
|
||||||
if (prop->value().find ('.')) {
|
if (prop->value().find ('.')) {
|
||||||
/* old school version format - lock at 3000 */
|
/* old school version format */
|
||||||
|
if (prop->value()[0] == '2') {
|
||||||
|
Stateful::loading_state_version = 2000;
|
||||||
|
} else {
|
||||||
Stateful::loading_state_version = 3000;
|
Stateful::loading_state_version = 3000;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Stateful::loading_state_version = atoi (prop->value());
|
Stateful::loading_state_version = atoi (prop->value());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user