diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-03 22:01:35 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-03 22:01:35 +0200 |
commit | e7637d7786e8e078c0ea01bb992c157009fe92a4 (patch) | |
tree | b3dac5a4d9037e5b6e3854e212e1c40829e08663 /gtk2_ardour | |
parent | e30a1032d06d22770e91277542031908e1bfc2f5 (diff) |
Fix mute toggle actions when mute is automated
Track menu, as well as mixer-shortcut to set/unset mute
of selected tracks needs to send a start_touch() event, otherwise
the change is not effective.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 99e7d1133a..c4c6f18ac8 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -6162,7 +6162,9 @@ Editor::toggle_mute () first = false; } - cl->push_back (stav->stripable()->mute_control()); + boost::shared_ptr<MuteControl> mc = stav->stripable()->mute_control(); + cl->push_back (mc); + mc->start_touch (_session->audible_sample ()); } _session->set_controls (cl, new_state, Controllable::UseGroup); diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index de59ef2a68..25effbd0e8 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -3383,6 +3383,7 @@ Mixer_UI::control_action (boost::shared_ptr<T> (Stripable::*get_control)() const if (s) { ac = (s.get()->*get_control)(); if (ac) { + ac->start_touch (_session->audible_sample ()); cl->push_back (ac); if (!have_val) { val = !ac->get_value(); |