mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
an actual fix for that last claim re: a buglet that used the wrong directory to store files in when cleaned up
git-svn-id: svn://localhost/ardour2/trunk@1277 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
87a5518eb1
commit
798bf13c41
1 changed files with 15 additions and 5 deletions
|
|
@ -2607,12 +2607,22 @@ Session::cleanup_sources (Session::cleanup_report& rep)
|
|||
on whichever filesystem it was already on.
|
||||
*/
|
||||
|
||||
/* XXX this is a hack ... go up 4 levels */
|
||||
if (_path.find ("/sounds/")) {
|
||||
|
||||
newpath = Glib::path_get_dirname (*x); // "audiofiles"
|
||||
newpath = Glib::path_get_dirname (newpath); // "session-name"
|
||||
newpath = Glib::path_get_dirname (newpath); // "interchange"
|
||||
newpath = Glib::path_get_dirname (newpath); // "session-dir"
|
||||
/* old school, go up 1 level */
|
||||
|
||||
newpath = Glib::path_get_dirname (*x); // "sounds"
|
||||
newpath = Glib::path_get_dirname (newpath); // "session-name"
|
||||
|
||||
} else {
|
||||
|
||||
/* new school, go up 4 levels */
|
||||
|
||||
newpath = Glib::path_get_dirname (*x); // "audiofiles"
|
||||
newpath = Glib::path_get_dirname (newpath); // "session-name"
|
||||
newpath = Glib::path_get_dirname (newpath); // "interchange"
|
||||
newpath = Glib::path_get_dirname (newpath); // "session-dir"
|
||||
}
|
||||
|
||||
newpath += '/';
|
||||
newpath += dead_sound_dir_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue