diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-05-08 10:33:37 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-05-08 10:40:27 +0100 |
commit | 8ddbbe427d58bc2de962382899a4f06570071539 (patch) | |
tree | ebd1fb02fef8e13cf3932c881b5a489203817cdc /gtk2_ardour/mixer_ui.cc | |
parent | d51049f3433322f3bfff4140c95a843f4a3befab (diff) |
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
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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<bool> uwi (ignore_reorder, true); + for (ri = rows.begin(); ri != rows.end(); ++ri) { if ((*ri)[stripable_columns.strip] == strip) { PBD::Unwinder<bool> 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); |