mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 22:56:32 +01:00
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:
parent
02a5c4088b
commit
e62f14e707
1 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue