Offer all of a bundle's ports for disconnection / removal when opening a menu over a bundle's name in the port matrix.

git-svn-id: svn://localhost/ardour2/branches/3.0@6365 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-12-14 16:44:20 +00:00
parent 383b24cc48
commit da762129f1
6 changed files with 80 additions and 24 deletions

View file

@ -187,7 +187,7 @@ PortMatrixComponent::position_to_channel (double p, double, boost::shared_ptr<co
if (_matrix->show_only_bundles()) {
if (p < 1) {
return ARDOUR::BundleChannel (j->bundle, 0);
return ARDOUR::BundleChannel (j->bundle, -1);
} else {
p -= 1;
}
@ -205,5 +205,5 @@ PortMatrixComponent::position_to_channel (double p, double, boost::shared_ptr<co
}
return ARDOUR::BundleChannel (boost::shared_ptr<ARDOUR::Bundle> (), 0);
return ARDOUR::BundleChannel (boost::shared_ptr<ARDOUR::Bundle> (), -1);
}