summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index 35cfea651f..ae2b19075b 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -436,10 +436,10 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
);
}
- if (can_remove_channels (bc[dim].bundle)) {
+ if (can_remove_channels (bc[dim].bundle) && bc[dim].bundle->nchannels() != ARDOUR::ChanCount::ZERO) {
if (bc[dim].channel != -1) {
add_remove_option (sub, w, bc[dim].channel);
- } else if (bc[dim].bundle->nchannels() != ARDOUR::ChanCount::ZERO) {
+ } else {
snprintf (buf, sizeof (buf), _("Remove all"));
sub.push_back (