avoid multiple backups of 0.99 session state

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2244 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-08-04 19:32:38 +00:00
parent 02a5c4088b
commit e62f14e707

View file

@ -814,6 +814,9 @@ Session::load_state (string snapshot_name)
backup_path += "-1";
backup_path += _statefile_suffix;
/* don't make another copy if it already exists */
if (!Glib::file_test (backup_path, Glib::FILE_TEST_EXISTS)) {
info << string_compose (_("Copying old session file %1 to %2\nUse %2 with Ardour versions before 2.0 from now on"),
xmlpath, backup_path)
<< endmsg;
@ -822,6 +825,7 @@ Session::load_state (string snapshot_name)
/* if it fails, don't worry. right? */
}
}
return 0;
}