From 12d1da30d23a3767ab91d7bb83696d3d0668fe31 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Aug 2011 14:13:11 +0000 Subject: Hopefully fix follow-up bug in #4209. git-svn-id: svn://localhost/ardour2/branches/3.0@9989 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/port_matrix.cc') 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 ( -- cgit v1.2.3