mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
do not reset paths for sources that are still outside the session after save-as
This commit is contained in:
parent
4141d2113f
commit
847c9de7be
1 changed files with 5 additions and 2 deletions
|
|
@ -4262,14 +4262,17 @@ Session::save_as (SaveAs& saveas)
|
||||||
|
|
||||||
for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) {
|
for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) {
|
||||||
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (i->second);
|
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (i->second);
|
||||||
|
|
||||||
if (!fs) {
|
if (!fs) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fs->within_session()) {
|
||||||
string newpath = make_new_media_path (fs->path(), to_dir, new_folder);
|
string newpath = make_new_media_path (fs->path(), to_dir, new_folder);
|
||||||
fs->set_path (newpath);
|
fs->set_path (newpath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Glib::FileError& e) {
|
} catch (Glib::FileError& e) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue