diff options
-rw-r--r-- | libs/ardour/audiofilesource.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 026cb3e7c0..0c8e21b503 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -543,6 +543,17 @@ AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t& } } + /* Current find() is unable to parse relative path names to yet non-existant + sources. QuickFix(tm) */ + if (keeppath == "") { + if (must_exist) { + error << "AudioFileSource::find(), keeppath = \"\", but the file must exist" << endl; + } else { + keeppath = pathstr; + } + + } + _name = pathstr; _path = keeppath; ret = true; |