From 9b1c3e71ab75c39437ed4d9926c7d68b81864deb Mon Sep 17 00:00:00 2001 From: carlh Date: Sun, 14 Aug 2011 14:13:11 +0000 Subject: [PATCH] Hopefully fix follow-up bug in #4209. git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@9989 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 35cfea651..ae2b19075 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 ( -- 2.11.4.GIT