diff options
author | David Robillard <d@drobilla.net> | 2007-03-18 06:07:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-18 06:07:08 +0000 |
commit | 99904735e066804358f1d0bd138a84f1e9ecda91 (patch) | |
tree | 71a924cf1660b5b00231275bd481bbd27094dd9b /libs/ardour/io.cc | |
parent | eb270e70a12c410cdd98585ad25bb6d8e384a4f5 (diff) |
Merged with trunk R1612.
git-svn-id: svn://localhost/ardour2/branches/midi@1614 d708f5d6-7413-0410-9779-e7cbd77b26cf
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); |