From 24f4b3c1357dabc03dd849faccdefa798ffbdd5e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 28 Apr 2012 13:41:55 +0000 Subject: Fix detection of 2.X sessions. git-svn-id: svn://localhost/ardour2/branches/3.0@12116 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libs') 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()); } -- cgit v1.2.3