From 8ddbbe427d58bc2de962382899a4f06570071539 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 8 May 2017 10:33:37 +0100 Subject: when a Route is removed, don't bother triggering a sync-presentation-info-from-treeview because it isn't necessary Also, don't update mixer selection unless selection actually changed --- gtk2_ardour/mixer_ui.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index b70ceef37d..83fe603f94 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -673,6 +673,8 @@ Mixer_UI::remove_strip (MixerStrip* strip) strips.erase (i); } + PBD::Unwinder uwi (ignore_reorder, true); + for (ri = rows.begin(); ri != rows.end(); ++ri) { if ((*ri)[stripable_columns.strip] == strip) { PBD::Unwinder uw (_route_deletion_in_progress, true); @@ -685,7 +687,11 @@ Mixer_UI::remove_strip (MixerStrip* strip) void Mixer_UI::presentation_info_changed (PropertyChange const & what_changed) { - _selection.presentation_info_changed (what_changed); + cerr << ">>>> MUI::pic\n"; + + if (what_changed.contains (Properties::selected)) { + _selection.presentation_info_changed (what_changed); + } PropertyChange soh; soh.add (Properties::selected); -- cgit v1.2.3