diff options
author | Carl Hetherington <carl@carlh.net> | 2009-02-10 02:06:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-02-10 02:06:31 +0000 |
commit | 9fc369aa44e9c934f0f9fea7e02d812831cc7468 (patch) | |
tree | a0cbc1fb7875d89f07c773e24be3904c21e7672d /gtk2_ardour/port_matrix.cc | |
parent | 6f14394c958409a8a4153b5ab929670cc1970937 (diff) |
Fix disassociation of all from a single channel.
git-svn-id: svn://localhost/ardour2/branches/3.0@4515 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 4fde95b827..1c00fb8994 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -475,9 +475,13 @@ PortMatrix::disassociate_all_on_channel (boost::weak_ptr<ARDOUR::Bundle> bundle, c[dim] = ARDOUR::BundleChannel (sb, channel); c[1-dim] = ARDOUR::BundleChannel (*i, j); - set_state (c, false); + if (get_state (c) == ASSOCIATED) { + set_state (c, false); + } } } + + _body->rebuild_and_draw_grid (); } void |