mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
Playlist UI tweaks: relax requirement that playlists names must be unique (libardour part)
This commit is contained in:
parent
25786ac130
commit
0e86e3337c
1 changed files with 0 additions and 14 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue