Use correct sources_root even when sessions are loaded from inside a session folder, specifying only their .ardour filename (#4032).
git-svn-id: svn://localhost/ardour2/branches/3.0@10285 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4c2f9dd11b
commit
6d66f90c5c
@ -94,7 +94,13 @@ SessionDirectory::old_sound_path () const
|
||||
const path
|
||||
SessionDirectory::sources_root () const
|
||||
{
|
||||
const string legalized_root(legalize_for_path(m_root_path.leaf()));
|
||||
path p = m_root_path;
|
||||
|
||||
if (p.leaf() == ".") {
|
||||
p = PBD::sys::get_absolute_path (m_root_path);
|
||||
}
|
||||
|
||||
const string legalized_root (legalize_for_path (p.leaf ()));
|
||||
|
||||
return m_root_path / interchange_dir_name / legalized_root;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user