From 00df248d3b0acf52b0cb951dbcf424f97fd83bb9 Mon Sep 17 00:00:00 2001 From: GZharun Date: Thu, 15 Jan 2015 13:26:04 +0200 Subject: [PATCH] Revert "[Summary] Removed redundant selection changes when new tracks are added" This reverts commit 72037faa33a24fcc095bac2de594ef4ccca4cece. --- gtk2_ardour/editor_routes.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 03ea036885..ac8ac3ca07 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -704,6 +704,10 @@ 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()); @@ -744,9 +748,6 @@ 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