Fix unnecessary backups of session files.
authorCarl Hetherington <carl@carlh.net>
Thu, 17 May 2012 14:42:46 +0000 (14:42 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 17 May 2012 14:42:46 +0000 (14:42 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12325 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_state.cc

index 2f67915ce535742431e8b63d94663d0079e6be0c..c21b492c8ff590729183adcea3927b3bc0a37fa3 100644 (file)
@@ -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;