mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
More tinkering with State<>. Use some StateDiffCommands instead of
MementoCommand<Region>. More use of State<> for Region members. git-svn-id: svn://localhost/ardour2/branches/3.0@6675 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
24fbade20a
commit
3a27410dcb
25 changed files with 208 additions and 192 deletions
|
|
@ -230,7 +230,7 @@ MidiSource::session_saved()
|
|||
|
||||
if (_model && _model->edited()) {
|
||||
string newname;
|
||||
const string basename = PBD::basename_nosuffix(_name);
|
||||
const string basename = PBD::basename_nosuffix(_name.get());
|
||||
string::size_type last_dash = basename.find_last_of("-");
|
||||
if (last_dash == string::npos || last_dash == basename.find_first_of("-")) {
|
||||
newname = basename + "-1";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue