mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
close all source files before renaming interchange tree in Session::rename()
This commit is contained in:
parent
88aaf587ad
commit
59028b6c80
1 changed files with 11 additions and 0 deletions
|
|
@ -3676,6 +3676,17 @@ Session::rename (const std::string& new_name)
|
||||||
* Backup files are left unchanged and not renamed.
|
* Backup files are left unchanged and not renamed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Windows requires that we close all files before attempting the
|
||||||
|
* rename
|
||||||
|
*/
|
||||||
|
|
||||||
|
for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) {
|
||||||
|
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (i->second);
|
||||||
|
if (fs) {
|
||||||
|
fs->close ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* pass one: not 100% safe check that the new directory names don't
|
/* pass one: not 100% safe check that the new directory names don't
|
||||||
* already exist ...
|
* already exist ...
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue