From 244df678005f6415b4fd0aa219396759927f7e3e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 30 Aug 2019 22:56:07 +0200 Subject: [PATCH] Fix mixer-side-bar show/hide actions Changes need to be propagated to the Stripable's PresentationInfo. So far this was not done for batch-changes using the mixer's left side-bar "Show all", "Hide all" actions. They remained local to the mixer and were not persistent. --- gtk2_ardour/mixer_ui.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 5a1690cacd..de59ef2a68 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -1204,9 +1204,7 @@ Mixer_UI::update_track_visibility () (*i)[stripable_columns.visible] = av->marked_for_display (); } - /* force presentation catch up with visibility changes - */ - + /* force presentation to catch up with visibility changes */ sync_presentation_info_from_treeview (); } @@ -1299,12 +1297,14 @@ Mixer_UI::set_all_strips_visibility (bool yn) (*i)[stripable_columns.visible] = yn; } + + /* force presentation to catch up with visibility changes */ + sync_presentation_info_from_treeview (); } redisplay_track_list (); } - void Mixer_UI::set_all_audio_midi_visibility (int tracks, bool yn) { @@ -1354,6 +1354,9 @@ Mixer_UI::set_all_audio_midi_visibility (int tracks, bool yn) break; } } + + /* force presentation to catch up with visibility changes */ + sync_presentation_info_from_treeview (); } redisplay_track_list ();