mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Use path::leaf instead of sys::basename in SessionDirectory::sound/midi_path
sys::basename now matches boost::filesystem behaviour so if a session name had a dot in it the session name used in the interchange directory would be truncated. git-svn-id: svn://localhost/ardour2/trunk@2408 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bb5314c364
commit
d8d24a7521
1 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ SessionDirectory::sound_path () const
|
|||
path l_sound_path(m_root_path);
|
||||
|
||||
l_sound_path /= interchange_dir_name;
|
||||
l_sound_path /= basename(m_root_path);
|
||||
l_sound_path /= m_root_path.leaf();
|
||||
l_sound_path /= sound_dir_name;
|
||||
|
||||
return l_sound_path;
|
||||
|
|
@ -112,7 +112,7 @@ SessionDirectory::midi_path () const
|
|||
path l_midi_path(m_root_path);
|
||||
|
||||
l_midi_path /= interchange_dir_name;
|
||||
l_midi_path /= basename(m_root_path);
|
||||
l_midi_path /= m_root_path.leaf();
|
||||
l_midi_path /= midi_dir_name;
|
||||
|
||||
return l_midi_path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue