From 433b6651ee8450da8282330ac35cb7ec1abbab6f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 17 May 2012 14:42:46 +0000 Subject: [PATCH] Fix unnecessary backups of session files. git-svn-id: svn://localhost/ardour2/branches/3.0@12325 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 2f67915ce5..c21b492c8f 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -925,7 +925,7 @@ Session::load_state (string snapshot_name) /* no version implies very old version of Ardour */ Stateful::loading_state_version = 1000; } else { - if (prop->value().find ('.')) { + if (prop->value().find ('.') != string::npos) { /* old school version format */ if (prop->value()[0] == '2') { Stateful::loading_state_version = 2000;