don't show remove port options for individual ports if there is only one (port matrix)
git-svn-id: svn://localhost/ardour2/branches/3.0@8951 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e1905c1c29
commit
0c5c1aafd0
|
@ -455,6 +455,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
||||||
MenuElem (buf, sigc::bind (sigc::mem_fun (*this, &PortMatrix::remove_all_channels), w))
|
MenuElem (buf, sigc::bind (sigc::mem_fun (*this, &PortMatrix::remove_all_channels), w))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (bc[dim].bundle->nchannels().n_total() > 1) {
|
||||||
for (uint32_t i = 0; i < bc[dim].bundle->nchannels().n_total(); ++i) {
|
for (uint32_t i = 0; i < bc[dim].bundle->nchannels().n_total(); ++i) {
|
||||||
if (should_show (bc[dim].bundle->channel_type(i))) {
|
if (should_show (bc[dim].bundle->channel_type(i))) {
|
||||||
add_remove_option (sub, w, i);
|
add_remove_option (sub, w, i);
|
||||||
|
@ -462,6 +463,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (_show_only_bundles || count_of_our_type (bc[dim].bundle->nchannels()) <= 1) {
|
if (_show_only_bundles || count_of_our_type (bc[dim].bundle->nchannels()) <= 1) {
|
||||||
snprintf (buf, sizeof (buf), _("%s all"), disassociation_verb().c_str());
|
snprintf (buf, sizeof (buf), _("%s all"), disassociation_verb().c_str());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user