diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-19 19:13:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-19 19:13:26 +0000 |
commit | 50ee09e80ff91bf0146e89728578d5e31aba23b7 (patch) | |
tree | af666ac1260e18e2a15465e89b1d23424673e525 /libs/ardour/session.cc | |
parent | c33d0ad760e311c37cfcb99e48948cc92472ad55 (diff) |
fix naming of destructive track audio files
git-svn-id: svn://localhost/trunk/ardour2@515 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 4a0d119afa..a8ab2204dc 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1887,11 +1887,6 @@ Session::add_route (Route* route) _control_out = route; } - AudioTrack* at = dynamic_cast<AudioTrack*>(route); - if (at && at->mode() == Destructive) { - destructive_index++; - } - set_dirty(); save_state (_current_snapshot_name); @@ -2801,8 +2796,8 @@ Session::audio_path_from_name (string name, uint32_t nchan, uint32_t chan, bool /* find a "version" of the file name that doesn't exist in any of the possible directories. */ - - for (cnt = (destructive ? destructive_index + 1 : 1); cnt <= limit; ++cnt) { + + for (cnt = (destructive ? ++destructive_index : 1); cnt <= limit; ++cnt) { vector<space_and_path>::iterator i; uint32_t existing = 0; |