Fix bumping .mid file name (snapshots & playlist copy)
authorRobin Gareus <robin@gareus.org>
Thu, 7 Sep 2017 04:05:26 +0000 (06:05 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 7 Sep 2017 04:05:26 +0000 (06:05 +0200)
commit6654c5376078c3ab5acfbf4e573fb11ffc9f44be
treebae931db831088f6fa6b3431aab4c9fc89a753c2
parent40edbb95193576839d6a06dccf9e2faf7e8e3e0a
Fix bumping .mid file name (snapshots & playlist copy)

When forking regions, copying playlists or saving snapshots we do not
have a reference to the track and cannot use the track's name as basis
for the new filename like Editor::fork_region() does.
A cloned midi region's name is based on the original region name.

This prevents endless addition "name-1-1-1-1-1-1-1-1.mid", adding
to the region's basename.
libs/ardour/session.cc