diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-26 02:07:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-26 02:07:59 +0000 |
commit | df78f284ee2707154cd56b2b25340f2fe8a8b6d2 (patch) | |
tree | ba23556f15cfecc1b358f4f1df611989c609bc62 /libs/ardour/region.cc | |
parent | fd384bf48e71b65ccd3858d10cc390c4128c469c (diff) |
fix up colons in track names before they are used for JACK port names; catch most (not all) attempted renames and ask the user about colons
git-svn-id: svn://localhost/ardour2/branches/3.0@9928 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 76b7ec0ec6..2ce823777b 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -32,6 +32,7 @@ #include "ardour/file_source.h" #include "ardour/filter.h" #include "ardour/playlist.h" +#include "ardour/playlist_source.h" #include "ardour/profile.h" #include "ardour/region.h" #include "ardour/region_factory.h" @@ -1481,7 +1482,16 @@ Region::uses_source (boost::shared_ptr<const Source> source) const if (*i == source) { return true; } + + boost::shared_ptr<PlaylistSource> ps = boost::dynamic_pointer_cast<PlaylistSource> (*i); + + if (ps) { + if (ps->playlist()->uses_source (source)) { + return true; + } + } } + return false; } |