mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
make auto track naming make a bit more sense
This commit is contained in:
parent
b63af3162e
commit
6fb099a88b
1 changed files with 5 additions and 2 deletions
|
|
@ -2380,8 +2380,11 @@ Session::find_route_name (string const & base, uint32_t& id, string& name, bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!definitely_add_number && route_by_name (base) == 0) {
|
/* if we have "base 1" already, it doesn't make sense to add "base"
|
||||||
/* juse use the base */
|
* if "base 1" has been deleted, adding "base" is no worse than "base 1"
|
||||||
|
*/
|
||||||
|
if (!definitely_add_number && route_by_name (base) == 0 && (route_by_name (string_compose("%1 1", base)) == 0)) {
|
||||||
|
/* just use the base */
|
||||||
name = base;
|
name = base;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue