mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
tweak Stateful/StatefulDiffCommand changes so that SessionObject's actually get a name; make StatefulDiffCommand use a weak_ptr, not a raw ptr; use .val() rather than .get() to avoid confusion with boost:: smart ptr method of the same name
git-svn-id: svn://localhost/ardour2/branches/3.0@6678 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f938687f87
commit
a1e0dc13df
19 changed files with 80 additions and 55 deletions
|
|
@ -230,7 +230,7 @@ MidiSource::session_saved()
|
|||
|
||||
if (_model && _model->edited()) {
|
||||
string newname;
|
||||
const string basename = PBD::basename_nosuffix(_name.get());
|
||||
const string basename = PBD::basename_nosuffix(_name.val());
|
||||
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