From 5ac2d6dcd89b90a7860c3261eb568687fbc4fca3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 26 Mar 2017 16:13:11 +0200 Subject: improve correct selection (in mixer) of newly added tracks/busses --- gtk2_ardour/mixer_ui.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/mixer_ui.cc') diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index a6aa36e641..d65138bc3e 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -517,7 +517,6 @@ Mixer_UI::add_stripables (StripableList& slist) MixerStrip* strip; - try { PBD::Unwinder 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 (); } -- cgit v1.2.3