diff options
author | Carl Hetherington <carl@carlh.net> | 2011-08-14 14:13:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-08-14 14:13:11 +0000 |
commit | 12d1da30d23a3767ab91d7bb83696d3d0668fe31 (patch) | |
tree | 1e008ea2a09ef5d9503f9cc8f9dd848d73b1e6fa | |
parent | eedb460acf13ab3bbfbd49e01525c6723552b16b (diff) |
Hopefully fix follow-up bug in #4209.
git-svn-id: svn://localhost/ardour2/branches/3.0@9989 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 4 |
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 ( |