when a Route is removed, don't bother triggering a sync-presentation-info-from-treevi...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 May 2017 09:33:37 +0000 (10:33 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 May 2017 09:40:27 +0000 (10:40 +0100)
Also, don't update mixer selection unless selection actually changed

gtk2_ardour/mixer_ui.cc

index b70ceef37db5e21be034c4e94717c9a6836c97a5..83fe603f949f9ef4aa900e6b4ca74f3fdcbc5204 100644 (file)
@@ -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);