{
using namespace Menu_Helpers;
- if (b->ports_are_outputs() == false || b->nchannels() != _route->n_inputs()) {
+ if (b->ports_are_outputs() == false || b->nchannels() != _route->n_inputs() || *b == *_route->output()->bundle()) {
return;
}
{
using namespace Menu_Helpers;
- if (b->ports_are_inputs() == false || b->nchannels() != _route->n_outputs()) {
+ if (b->ports_are_inputs() == false || b->nchannels() != _route->n_outputs() || *b == *_route->input()->bundle()) {
return;
}
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
return os;
}
+
+bool
+Bundle::operator== (Bundle const & other)
+{
+ return _channel == other._channel;
+}