From 72037faa33a24fcc095bac2de594ef4ccca4cece Mon Sep 17 00:00:00 2001 From: GZharun Date: Thu, 15 Jan 2015 13:14:08 +0200 Subject: [PATCH] [Summary] Removed redundant selection changes when new tracks are added --- gtk2_ardour/editor_routes.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index ac8ac3ca07..03ea036885 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -704,10 +704,6 @@ EditorRoutes::routes_added (list routes) row[_columns.solo_safe_state] = (*x)->route()->solo_safe(); row[_columns.name_editable] = true; - if (!from_scratch) { - _editor->selection->add(*x); - } - boost::weak_ptr wr ((*x)->route()); (*x)->route()->gui_changed.connect (*this, MISSING_INVALIDATOR, boost::bind (&EditorRoutes::handle_gui_changes, this, _1, _2), gui_context()); @@ -748,6 +744,9 @@ EditorRoutes::routes_added (list routes) /* now update route order keys from the treeview/track display order */ sync_order_keys_from_treeview (); + + /* update selection */ + selection_changed (); } void