summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-05-17 14:42:46 +0000
committerCarl Hetherington <carl@carlh.net>2012-05-17 14:42:46 +0000
commit433b6651ee8450da8282330ac35cb7ec1abbab6f (patch)
tree768b21dcc5d6a88e358febc52e23c096230dcb90
parentb17c8d58265230007e3c955bb8d9f9ca26668f7d (diff)
Fix unnecessary backups of session files.
git-svn-id: svn://localhost/ardour2/branches/3.0@12325 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 1 insertions, 1 deletions
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;