improve correct selection (in mixer) of newly added tracks/busses
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 26 Mar 2017 14:13:11 +0000 (16:13 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 26 Mar 2017 14:13:11 +0000 (16:13 +0200)
gtk2_ardour/mixer_ui.cc

index a6aa36e641773bd427c68469272cd54d93cae530..d65138bc3eb7c736096615b4dee03ce571cbd750 100644 (file)
@@ -517,7 +517,6 @@ Mixer_UI::add_stripables (StripableList& slist)
 
        MixerStrip* strip;
 
-
        try {
                PBD::Unwinder<bool> uw (no_track_list_redisplay, true);
 
@@ -594,10 +593,6 @@ Mixer_UI::add_stripables (StripableList& slist)
                                        row[stripable_columns.stripable] = route;
                                        row[stripable_columns.strip] = strip;
 
-                                       if (nroutes != 0) {
-                                               _selection.add (strip);
-                                       }
-
                                } else {
 
                                        out_packer.pack_start (*strip, false, false);
@@ -618,6 +613,9 @@ Mixer_UI::add_stripables (StripableList& slist)
 
        track_display.set_model (track_model);
 
+       /* catch up on selection state, which we left to the editor to set */
+       sync_treeview_from_presentation_info (PropertyChange (Properties::selected));
+
        if (!from_scratch) {
                sync_presentation_info_from_treeview ();
        }