diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-22 15:02:49 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-23 14:25:38 -0700 |
commit | 87a5990e54c3b4cc43ceaae023b8dfcb902169dd (patch) | |
tree | 52038c8b7bbc71fd008bbc9fe9ec82792d5feef3 /libs/ardour/region.cc | |
parent | 24f8a90278e0578a755933a4361920ba7e040289 (diff) |
MIDI-region specific naming logic
plus slight cleanup of Region::set_name().
Note that issues with ARDOUR::legalize_for_path() not excluding colons still remain
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index fb82c5c675..a2bee99a7f 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -447,13 +447,13 @@ Region::set_playlist (boost::weak_ptr<Playlist> wpl) bool Region::set_name (const std::string& str) { - if (_name != str) { - SessionObject::set_name(str); // EMIT SIGNAL NameChanged() - assert(_name == str); - - send_change (Properties::name); + if (_name == str) { + return true; } + SessionObject::set_name (str); // EMIT SIGNAL NameChanged() + assert (_name == str); + send_change (Properties::name); return true; } |