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,11 +455,13 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
||||
MenuElem (buf, sigc::bind (sigc::mem_fun (*this, &PortMatrix::remove_all_channels), w))
|
||||
);
|
||||
|
||||
for (uint32_t i = 0; i < bc[dim].bundle->nchannels().n_total(); ++i) {
|
||||
if (should_show (bc[dim].bundle->channel_type(i))) {
|
||||
add_remove_option (sub, w, i);
|
||||
}
|
||||
}
|
||||
if (bc[dim].bundle->nchannels().n_total() > 1) {
|
||||
for (uint32_t i = 0; i < bc[dim].bundle->nchannels().n_total(); ++i) {
|
||||
if (should_show (bc[dim].bundle->channel_type(i))) {
|
||||
add_remove_option (sub, w, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user