improve correct selection (in mixer) of newly added tracks/busses

This commit is contained in:
Paul Davis
2017-03-26 16:13:11 +02:00
parent 453e07d0a2
commit 5ac2d6dcd8

View 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 ();
}