From ec88635555a866eb7525970b6ddc046783265324 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 19 Nov 2021 13:01:54 -0600 Subject: [PATCH] MIDI Draw: potential workaround for sticky menu items at startup --- gtk2_ardour/editor.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 45e56755ad..eada177c58 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -859,9 +859,13 @@ Editor::Editor () /* these are defaults; instant.xml will replace these with user's recent selection */ set_grid_to (GridTypeNone); - set_draw_length_to (GridTypeBeat); - set_draw_velocity_to (82); - set_draw_channel_to (0); + + RefPtr ract = draw_length_action (GridTypeBeat); + ract->set_active(); + ract = draw_velocity_action (82); + ract->set_active(); + ract = draw_channel_action (0); + ract->set_active(); } Editor::~Editor()