diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-08 00:53:06 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-08 00:53:13 -0400 |
commit | fcabd5d8ee172e9d27423864448902ad99634ac5 (patch) | |
tree | 5c20f5dd6cc3c285bd4eb5f849796b95665f0243 /libs/ardour/file_source.cc | |
parent | d3e3f5f0058f45825b46abf731ece39fc416efa0 (diff) |
initial implementation of "bring all media into session folder". Incomplete but basically functional for audio files
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r-- | libs/ardour/file_source.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index 8c41f981b9..bb6d3562fa 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -546,6 +546,12 @@ void FileSource::set_path (const std::string& newpath) { _path = newpath; + set_within_session_from_path (newpath); + if (_within_session) { + _origin = Glib::path_get_basename (newpath); + } else { + _origin = newpath; + } } void @@ -597,3 +603,5 @@ FileSource::rename (const string& newpath) return 0; } + + |