diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-03 03:04:51 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-03 03:04:51 +0000 |
commit | 3e36dc77467139f530f15fcbf42a1d5c6960502f (patch) | |
tree | ea0d93ebeadbe4e47fca874bf33454748fb86240 /libs/ardour | |
parent | 11d604dea3a4be4bffa3a2c5a9b80ae03f39512c (diff) |
Don't offer inputs to things as possible output connections, and vice versa (part of #4432).
git-svn-id: svn://localhost/ardour2/branches/3.0@10410 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/bundle.h | 2 | ||||
-rw-r--r-- | libs/ardour/bundle.cc | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index e3d56f22f5..6b8586a46a 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -114,6 +114,8 @@ class Bundle : public PBD::ScopedConnectionList void suspend_signals (); void resume_signals (); + bool operator== (Bundle const & other); + /** Things that might change about this bundle */ enum Change { NameChanged = 0x1, ///< the bundle name or a channel name has changed diff --git a/libs/ardour/bundle.cc b/libs/ardour/bundle.cc index 1948024d91..d8666c5bbb 100644 --- a/libs/ardour/bundle.cc +++ b/libs/ardour/bundle.cc @@ -511,3 +511,9 @@ operator<< (ostream& os, Bundle const & b) return os; } + +bool +Bundle::operator== (Bundle const & other) +{ + return _channel == other._channel; +} |