summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-08-06 19:52:51 +0200
committerRobin Gareus <robin@gareus.org>2018-08-06 19:52:51 +0200
commitf4c11666519a6118aaa07c58762eb379b39345df (patch)
tree9e4daafc295d2552ffc094c641b7b0ed3b350a5e /libs/ardour/ardour
parentbdf8edc4198494505fb59f92ffc1aef9c1e2136f (diff)
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".
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/route.h2
1 files changed, 1 insertions, 1 deletions
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);