diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 00:18:49 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 00:18:49 -0400 |
commit | 847c9de7be177725134f230dafa6147ebfafb944 (patch) | |
tree | 40160856094d07fead0f391425efa1d0761f0947 /libs | |
parent | 4141d2113f47c34d5b4282892fb50954ededbb03 (diff) |
do not reset paths for sources that are still outside the session after save-as
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 3ab6ff09b5..32b6e28c47 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -4262,12 +4262,15 @@ Session::save_as (SaveAs& saveas) 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) { continue; } - string newpath = make_new_media_path (fs->path(), to_dir, new_folder); - fs->set_path (newpath); + if (fs->within_session()) { + string newpath = make_new_media_path (fs->path(), to_dir, new_folder); + fs->set_path (newpath); + } } } |