Playlist UI tweaks: relax requirement that playlists names must be unique (libardour part)
This commit is contained in:
parent
25786ac130
commit
0e86e3337c
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user