From e7637d7786e8e078c0ea01bb992c157009fe92a4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 3 Sep 2019 22:01:35 +0200 Subject: 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. --- gtk2_ardour/editor_ops.cc | 4 +++- gtk2_ardour/mixer_ui.cc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') 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 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 (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(); -- cgit v1.2.3