Fix session version check to work with some very old sessions

This commit is contained in:
Sakari Bergen 2015-01-05 01:04:43 +02:00
parent 041b729de7
commit ea1a330f9a

View File

@ -846,7 +846,7 @@ Session::load_state (string snapshot_name)
} else {
if (prop->value().find ('.') != string::npos) {
/* old school version format */
if (prop->value()[0] == '2') {
if (prop->value()[0] < '3') {
Stateful::loading_state_version = 2000;
} else {
Stateful::loading_state_version = 3000;