diff options
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index b7472781a8..a9284d779c 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -27,6 +27,7 @@ #include <glibmm/thread.h> #include <pbd/xml++.h> +#include <pbd/replace_all.h> #include <ardour/audioengine.h> #include <ardour/io.h> @@ -1817,6 +1818,12 @@ IO::set_name (string name, void* src) return 0; } + /* replace all colons in the name. i wish we didn't have to do this */ + + if (replace_all (name, ":", "-")) { + warning << _("you cannot use colons to name objects with I/O connections") << endmsg; + } + for (PortSet::iterator i = _inputs.begin(); i != _inputs.end(); ++i) { string current_name = i->short_name(); current_name.replace (current_name.find (_name), _name.length(), name); |