mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
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
1 changed files with 6 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue