Playlist UI tweaks: relax requirement that playlists names must be unique (libardour part)

This commit is contained in:
Ben Loftis 2021-05-31 20:58:09 -05:00
parent 25786ac130
commit 0e86e3337c

View File

@ -403,20 +403,6 @@ Playlist::_set_sort_id ()
bool
Playlist::set_name (const string& str)
{
/* in a typical situation, a playlist is being used
* by one diskstream and also is referenced by the
* Session. if there are more references than that,
* then don't change the name.
*/
if (_refcnt > 2) {
return false;
}
if (_session.playlists()->by_name (str)) {
return false;
}
bool ret = SessionObject::set_name (str);
if (ret) {
_set_sort_id ();