From f4c11666519a6118aaa07c58762eb379b39345df Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 6 Aug 2018 19:52:51 +0200 Subject: Fix track rename oddity, don't skip over current name. ensure_track_or_route_name() can produce the current name. This fixes the following issue: Create a two audio tracks. Their names are "Audio" and "Audio 1". Try to rename "Audio 1" to "Audio", its name becomes "Audio 2". --- libs/ardour/ardour/route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index d3a4a5d35f..152acf37e6 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -123,7 +123,7 @@ public: bool active() const { return _active; } void set_active (bool yn, void *); - static std::string ensure_track_or_route_name(std::string, Session &); + std::string ensure_track_or_route_name (std::string) const; std::string comment() { return _comment; } void set_comment (std::string str, void *src); -- cgit v1.2.3